brepkit-wasm 2.112.1 → 2.113.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/brepkit_wasm.d.ts +18 -0
- package/brepkit_wasm_bg.js +45 -3
- package/brepkit_wasm_bg.wasm +0 -0
- package/brepkit_wasm_node.cjs +45 -3
- package/package.json +1 -1
package/brepkit_wasm.d.ts
CHANGED
|
@@ -1259,6 +1259,24 @@ export class BrepKernel {
|
|
|
1259
1259
|
* Returns an error if radius or height is non-positive.
|
|
1260
1260
|
*/
|
|
1261
1261
|
makeCylinder(radius: number, height: number): number;
|
|
1262
|
+
/**
|
|
1263
|
+
* Create a trimmed elliptical arc edge.
|
|
1264
|
+
*
|
|
1265
|
+
* The ellipse is defined by `center`, `axis` (plane normal), the
|
|
1266
|
+
* `ref` major-axis direction, and `semi_major`/`semi_minor`. The
|
|
1267
|
+
* `start`/`end` points trim it to the CCW arc between them (they must
|
|
1268
|
+
* lie on the ellipse). Produces an `EdgeCurve::Ellipse` edge — not a
|
|
1269
|
+
* NURBS approximation — so it reports CIRCLE/ELLIPSE-class geometry.
|
|
1270
|
+
*
|
|
1271
|
+
* Returns an edge handle (`u32`).
|
|
1272
|
+
*
|
|
1273
|
+
* # Errors
|
|
1274
|
+
*
|
|
1275
|
+
* Returns an error if any coordinate is NaN/infinite, a semi-axis is
|
|
1276
|
+
* non-positive, `semi_minor` exceeds `semi_major`, or `axis`/`ref` is
|
|
1277
|
+
* a zero vector.
|
|
1278
|
+
*/
|
|
1279
|
+
makeEllipseArc3d(start_x: number, start_y: number, start_z: number, end_x: number, end_y: number, end_z: number, center_x: number, center_y: number, center_z: number, axis_x: number, axis_y: number, axis_z: number, ref_x: number, ref_y: number, ref_z: number, semi_major: number, semi_minor: number): number;
|
|
1262
1280
|
/**
|
|
1263
1281
|
* Create a closed elliptical edge with true `Ellipse` curve geometry.
|
|
1264
1282
|
*
|
package/brepkit_wasm_bg.js
CHANGED
|
@@ -2779,6 +2779,48 @@ export class BrepKernel {
|
|
|
2779
2779
|
}
|
|
2780
2780
|
return ret[0] >>> 0;
|
|
2781
2781
|
}
|
|
2782
|
+
/**
|
|
2783
|
+
* Create a trimmed elliptical arc edge.
|
|
2784
|
+
*
|
|
2785
|
+
* The ellipse is defined by `center`, `axis` (plane normal), the
|
|
2786
|
+
* `ref` major-axis direction, and `semi_major`/`semi_minor`. The
|
|
2787
|
+
* `start`/`end` points trim it to the CCW arc between them (they must
|
|
2788
|
+
* lie on the ellipse). Produces an `EdgeCurve::Ellipse` edge — not a
|
|
2789
|
+
* NURBS approximation — so it reports CIRCLE/ELLIPSE-class geometry.
|
|
2790
|
+
*
|
|
2791
|
+
* Returns an edge handle (`u32`).
|
|
2792
|
+
*
|
|
2793
|
+
* # Errors
|
|
2794
|
+
*
|
|
2795
|
+
* Returns an error if any coordinate is NaN/infinite, a semi-axis is
|
|
2796
|
+
* non-positive, `semi_minor` exceeds `semi_major`, or `axis`/`ref` is
|
|
2797
|
+
* a zero vector.
|
|
2798
|
+
* @param {number} start_x
|
|
2799
|
+
* @param {number} start_y
|
|
2800
|
+
* @param {number} start_z
|
|
2801
|
+
* @param {number} end_x
|
|
2802
|
+
* @param {number} end_y
|
|
2803
|
+
* @param {number} end_z
|
|
2804
|
+
* @param {number} center_x
|
|
2805
|
+
* @param {number} center_y
|
|
2806
|
+
* @param {number} center_z
|
|
2807
|
+
* @param {number} axis_x
|
|
2808
|
+
* @param {number} axis_y
|
|
2809
|
+
* @param {number} axis_z
|
|
2810
|
+
* @param {number} ref_x
|
|
2811
|
+
* @param {number} ref_y
|
|
2812
|
+
* @param {number} ref_z
|
|
2813
|
+
* @param {number} semi_major
|
|
2814
|
+
* @param {number} semi_minor
|
|
2815
|
+
* @returns {number}
|
|
2816
|
+
*/
|
|
2817
|
+
makeEllipseArc3d(start_x, start_y, start_z, end_x, end_y, end_z, center_x, center_y, center_z, axis_x, axis_y, axis_z, ref_x, ref_y, ref_z, semi_major, semi_minor) {
|
|
2818
|
+
const ret = wasm.brepkernel_makeEllipseArc3d(this.__wbg_ptr, start_x, start_y, start_z, end_x, end_y, end_z, center_x, center_y, center_z, axis_x, axis_y, axis_z, ref_x, ref_y, ref_z, semi_major, semi_minor);
|
|
2819
|
+
if (ret[2]) {
|
|
2820
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
2821
|
+
}
|
|
2822
|
+
return ret[0] >>> 0;
|
|
2823
|
+
}
|
|
2782
2824
|
/**
|
|
2783
2825
|
* Create a closed elliptical edge with true `Ellipse` curve geometry.
|
|
2784
2826
|
*
|
|
@@ -5062,13 +5104,13 @@ export function __wbg___wbindgen_debug_string_0accd80f45e5faa2(arg0, arg1) {
|
|
|
5062
5104
|
export function __wbg___wbindgen_throw_1506f2235d1bdba0(arg0, arg1) {
|
|
5063
5105
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
5064
5106
|
}
|
|
5065
|
-
export function
|
|
5107
|
+
export function __wbg_error_e71c949e04e3f37b(arg0, arg1) {
|
|
5066
5108
|
console.error(getStringFromWasm0(arg0, arg1));
|
|
5067
5109
|
}
|
|
5068
|
-
export function
|
|
5110
|
+
export function __wbg_log_e0902423004350c8(arg0, arg1) {
|
|
5069
5111
|
console.log(getStringFromWasm0(arg0, arg1));
|
|
5070
5112
|
}
|
|
5071
|
-
export function
|
|
5113
|
+
export function __wbg_warn_5d1b964405822f2a(arg0, arg1) {
|
|
5072
5114
|
console.warn(getStringFromWasm0(arg0, arg1));
|
|
5073
5115
|
}
|
|
5074
5116
|
export function __wbindgen_cast_0000000000000001(arg0, arg1) {
|
package/brepkit_wasm_bg.wasm
CHANGED
|
Binary file
|
package/brepkit_wasm_node.cjs
CHANGED
|
@@ -2781,6 +2781,48 @@ class BrepKernel {
|
|
|
2781
2781
|
}
|
|
2782
2782
|
return ret[0] >>> 0;
|
|
2783
2783
|
}
|
|
2784
|
+
/**
|
|
2785
|
+
* Create a trimmed elliptical arc edge.
|
|
2786
|
+
*
|
|
2787
|
+
* The ellipse is defined by `center`, `axis` (plane normal), the
|
|
2788
|
+
* `ref` major-axis direction, and `semi_major`/`semi_minor`. The
|
|
2789
|
+
* `start`/`end` points trim it to the CCW arc between them (they must
|
|
2790
|
+
* lie on the ellipse). Produces an `EdgeCurve::Ellipse` edge — not a
|
|
2791
|
+
* NURBS approximation — so it reports CIRCLE/ELLIPSE-class geometry.
|
|
2792
|
+
*
|
|
2793
|
+
* Returns an edge handle (`u32`).
|
|
2794
|
+
*
|
|
2795
|
+
* # Errors
|
|
2796
|
+
*
|
|
2797
|
+
* Returns an error if any coordinate is NaN/infinite, a semi-axis is
|
|
2798
|
+
* non-positive, `semi_minor` exceeds `semi_major`, or `axis`/`ref` is
|
|
2799
|
+
* a zero vector.
|
|
2800
|
+
* @param {number} start_x
|
|
2801
|
+
* @param {number} start_y
|
|
2802
|
+
* @param {number} start_z
|
|
2803
|
+
* @param {number} end_x
|
|
2804
|
+
* @param {number} end_y
|
|
2805
|
+
* @param {number} end_z
|
|
2806
|
+
* @param {number} center_x
|
|
2807
|
+
* @param {number} center_y
|
|
2808
|
+
* @param {number} center_z
|
|
2809
|
+
* @param {number} axis_x
|
|
2810
|
+
* @param {number} axis_y
|
|
2811
|
+
* @param {number} axis_z
|
|
2812
|
+
* @param {number} ref_x
|
|
2813
|
+
* @param {number} ref_y
|
|
2814
|
+
* @param {number} ref_z
|
|
2815
|
+
* @param {number} semi_major
|
|
2816
|
+
* @param {number} semi_minor
|
|
2817
|
+
* @returns {number}
|
|
2818
|
+
*/
|
|
2819
|
+
makeEllipseArc3d(start_x, start_y, start_z, end_x, end_y, end_z, center_x, center_y, center_z, axis_x, axis_y, axis_z, ref_x, ref_y, ref_z, semi_major, semi_minor) {
|
|
2820
|
+
const ret = wasm.brepkernel_makeEllipseArc3d(this.__wbg_ptr, start_x, start_y, start_z, end_x, end_y, end_z, center_x, center_y, center_z, axis_x, axis_y, axis_z, ref_x, ref_y, ref_z, semi_major, semi_minor);
|
|
2821
|
+
if (ret[2]) {
|
|
2822
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
2823
|
+
}
|
|
2824
|
+
return ret[0] >>> 0;
|
|
2825
|
+
}
|
|
2784
2826
|
/**
|
|
2785
2827
|
* Create a closed elliptical edge with true `Ellipse` curve geometry.
|
|
2786
2828
|
*
|
|
@@ -5074,13 +5116,13 @@ function __wbg_get_imports() {
|
|
|
5074
5116
|
__wbg___wbindgen_throw_1506f2235d1bdba0: function(arg0, arg1) {
|
|
5075
5117
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
5076
5118
|
},
|
|
5077
|
-
|
|
5119
|
+
__wbg_error_e71c949e04e3f37b: function(arg0, arg1) {
|
|
5078
5120
|
console.error(getStringFromWasm0(arg0, arg1));
|
|
5079
5121
|
},
|
|
5080
|
-
|
|
5122
|
+
__wbg_log_e0902423004350c8: function(arg0, arg1) {
|
|
5081
5123
|
console.log(getStringFromWasm0(arg0, arg1));
|
|
5082
5124
|
},
|
|
5083
|
-
|
|
5125
|
+
__wbg_warn_5d1b964405822f2a: function(arg0, arg1) {
|
|
5084
5126
|
console.warn(getStringFromWasm0(arg0, arg1));
|
|
5085
5127
|
},
|
|
5086
5128
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
package/package.json
CHANGED