brepkit-wasm 2.115.7 → 2.115.8
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 +2 -2
- package/brepkit_wasm_bg.js +9 -7
- package/brepkit_wasm_bg.wasm +0 -0
- package/brepkit_wasm_node.cjs +9 -7
- package/package.json +1 -1
package/brepkit_wasm.d.ts
CHANGED
|
@@ -1504,14 +1504,14 @@ export class BrepKernel {
|
|
|
1504
1504
|
* automatically filtered out to reduce wireframe clutter. These edges
|
|
1505
1505
|
* arise from boolean face-splitting and don't represent visible creases.
|
|
1506
1506
|
*/
|
|
1507
|
-
meshEdges(solid: number, deflection: number): JsEdgeLines;
|
|
1507
|
+
meshEdges(solid: number, deflection: number, angular_tolerance?: number | null): JsEdgeLines;
|
|
1508
1508
|
/**
|
|
1509
1509
|
* Sample ALL edges of a solid (no smooth-edge filtering).
|
|
1510
1510
|
*
|
|
1511
1511
|
* Same as `meshEdges` but includes edges between co-surface faces.
|
|
1512
1512
|
* Useful for debugging topology.
|
|
1513
1513
|
*/
|
|
1514
|
-
meshEdgesAll(solid: number, deflection: number): JsEdgeLines;
|
|
1514
|
+
meshEdgesAll(solid: number, deflection: number, angular_tolerance?: number | null): JsEdgeLines;
|
|
1515
1515
|
/**
|
|
1516
1516
|
* Convex Minkowski sum of two solids (`A ⊕ B`).
|
|
1517
1517
|
*
|
package/brepkit_wasm_bg.js
CHANGED
|
@@ -3323,10 +3323,11 @@ export class BrepKernel {
|
|
|
3323
3323
|
* arise from boolean face-splitting and don't represent visible creases.
|
|
3324
3324
|
* @param {number} solid
|
|
3325
3325
|
* @param {number} deflection
|
|
3326
|
+
* @param {number | null} [angular_tolerance]
|
|
3326
3327
|
* @returns {JsEdgeLines}
|
|
3327
3328
|
*/
|
|
3328
|
-
meshEdges(solid, deflection) {
|
|
3329
|
-
const ret = wasm.brepkernel_meshEdges(this.__wbg_ptr, solid, deflection);
|
|
3329
|
+
meshEdges(solid, deflection, angular_tolerance) {
|
|
3330
|
+
const ret = wasm.brepkernel_meshEdges(this.__wbg_ptr, solid, deflection, !isLikeNone(angular_tolerance), isLikeNone(angular_tolerance) ? 0 : angular_tolerance);
|
|
3330
3331
|
if (ret[2]) {
|
|
3331
3332
|
throw takeFromExternrefTable0(ret[1]);
|
|
3332
3333
|
}
|
|
@@ -3339,10 +3340,11 @@ export class BrepKernel {
|
|
|
3339
3340
|
* Useful for debugging topology.
|
|
3340
3341
|
* @param {number} solid
|
|
3341
3342
|
* @param {number} deflection
|
|
3343
|
+
* @param {number | null} [angular_tolerance]
|
|
3342
3344
|
* @returns {JsEdgeLines}
|
|
3343
3345
|
*/
|
|
3344
|
-
meshEdgesAll(solid, deflection) {
|
|
3345
|
-
const ret = wasm.brepkernel_meshEdgesAll(this.__wbg_ptr, solid, deflection);
|
|
3346
|
+
meshEdgesAll(solid, deflection, angular_tolerance) {
|
|
3347
|
+
const ret = wasm.brepkernel_meshEdgesAll(this.__wbg_ptr, solid, deflection, !isLikeNone(angular_tolerance), isLikeNone(angular_tolerance) ? 0 : angular_tolerance);
|
|
3346
3348
|
if (ret[2]) {
|
|
3347
3349
|
throw takeFromExternrefTable0(ret[1]);
|
|
3348
3350
|
}
|
|
@@ -5174,13 +5176,13 @@ export function __wbg___wbindgen_debug_string_0accd80f45e5faa2(arg0, arg1) {
|
|
|
5174
5176
|
export function __wbg___wbindgen_throw_1506f2235d1bdba0(arg0, arg1) {
|
|
5175
5177
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
5176
5178
|
}
|
|
5177
|
-
export function
|
|
5179
|
+
export function __wbg_error_5de4293489a5702b(arg0, arg1) {
|
|
5178
5180
|
console.error(getStringFromWasm0(arg0, arg1));
|
|
5179
5181
|
}
|
|
5180
|
-
export function
|
|
5182
|
+
export function __wbg_log_0550c099b681f479(arg0, arg1) {
|
|
5181
5183
|
console.log(getStringFromWasm0(arg0, arg1));
|
|
5182
5184
|
}
|
|
5183
|
-
export function
|
|
5185
|
+
export function __wbg_warn_f88124594c07f877(arg0, arg1) {
|
|
5184
5186
|
console.warn(getStringFromWasm0(arg0, arg1));
|
|
5185
5187
|
}
|
|
5186
5188
|
export function __wbindgen_cast_0000000000000001(arg0, arg1) {
|
package/brepkit_wasm_bg.wasm
CHANGED
|
Binary file
|
package/brepkit_wasm_node.cjs
CHANGED
|
@@ -3325,10 +3325,11 @@ class BrepKernel {
|
|
|
3325
3325
|
* arise from boolean face-splitting and don't represent visible creases.
|
|
3326
3326
|
* @param {number} solid
|
|
3327
3327
|
* @param {number} deflection
|
|
3328
|
+
* @param {number | null} [angular_tolerance]
|
|
3328
3329
|
* @returns {JsEdgeLines}
|
|
3329
3330
|
*/
|
|
3330
|
-
meshEdges(solid, deflection) {
|
|
3331
|
-
const ret = wasm.brepkernel_meshEdges(this.__wbg_ptr, solid, deflection);
|
|
3331
|
+
meshEdges(solid, deflection, angular_tolerance) {
|
|
3332
|
+
const ret = wasm.brepkernel_meshEdges(this.__wbg_ptr, solid, deflection, !isLikeNone(angular_tolerance), isLikeNone(angular_tolerance) ? 0 : angular_tolerance);
|
|
3332
3333
|
if (ret[2]) {
|
|
3333
3334
|
throw takeFromExternrefTable0(ret[1]);
|
|
3334
3335
|
}
|
|
@@ -3341,10 +3342,11 @@ class BrepKernel {
|
|
|
3341
3342
|
* Useful for debugging topology.
|
|
3342
3343
|
* @param {number} solid
|
|
3343
3344
|
* @param {number} deflection
|
|
3345
|
+
* @param {number | null} [angular_tolerance]
|
|
3344
3346
|
* @returns {JsEdgeLines}
|
|
3345
3347
|
*/
|
|
3346
|
-
meshEdgesAll(solid, deflection) {
|
|
3347
|
-
const ret = wasm.brepkernel_meshEdgesAll(this.__wbg_ptr, solid, deflection);
|
|
3348
|
+
meshEdgesAll(solid, deflection, angular_tolerance) {
|
|
3349
|
+
const ret = wasm.brepkernel_meshEdgesAll(this.__wbg_ptr, solid, deflection, !isLikeNone(angular_tolerance), isLikeNone(angular_tolerance) ? 0 : angular_tolerance);
|
|
3348
3350
|
if (ret[2]) {
|
|
3349
3351
|
throw takeFromExternrefTable0(ret[1]);
|
|
3350
3352
|
}
|
|
@@ -5186,13 +5188,13 @@ function __wbg_get_imports() {
|
|
|
5186
5188
|
__wbg___wbindgen_throw_1506f2235d1bdba0: function(arg0, arg1) {
|
|
5187
5189
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
5188
5190
|
},
|
|
5189
|
-
|
|
5191
|
+
__wbg_error_5de4293489a5702b: function(arg0, arg1) {
|
|
5190
5192
|
console.error(getStringFromWasm0(arg0, arg1));
|
|
5191
5193
|
},
|
|
5192
|
-
|
|
5194
|
+
__wbg_log_0550c099b681f479: function(arg0, arg1) {
|
|
5193
5195
|
console.log(getStringFromWasm0(arg0, arg1));
|
|
5194
5196
|
},
|
|
5195
|
-
|
|
5197
|
+
__wbg_warn_f88124594c07f877: function(arg0, arg1) {
|
|
5196
5198
|
console.warn(getStringFromWasm0(arg0, arg1));
|
|
5197
5199
|
},
|
|
5198
5200
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
package/package.json
CHANGED