brepkit-wasm 2.114.19 → 2.115.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 +15 -0
- package/brepkit_wasm_bg.js +28 -3
- package/brepkit_wasm_bg.wasm +0 -0
- package/brepkit_wasm_node.cjs +28 -3
- package/package.json +1 -1
package/brepkit_wasm.d.ts
CHANGED
|
@@ -706,6 +706,21 @@ export class BrepKernel {
|
|
|
706
706
|
* produces an empty or non-manifold result.
|
|
707
707
|
*/
|
|
708
708
|
fuse(a: number, b: number): number;
|
|
709
|
+
/**
|
|
710
|
+
* Fuse (union) many solids into one in a single call.
|
|
711
|
+
*
|
|
712
|
+
* Faster than a left-fold over `fuse`: overlapping solids are reduced
|
|
713
|
+
* pairwise in a balanced tree while disjoint groups are merged directly
|
|
714
|
+
* without a boolean.
|
|
715
|
+
*
|
|
716
|
+
* Returns a new solid handle (`u32`).
|
|
717
|
+
*
|
|
718
|
+
* # Errors
|
|
719
|
+
*
|
|
720
|
+
* Returns an error if any solid handle is invalid, the list is empty,
|
|
721
|
+
* or a boolean operation produces an empty or non-manifold result.
|
|
722
|
+
*/
|
|
723
|
+
fuseAll(solid_handles: Uint32Array): number;
|
|
709
724
|
/**
|
|
710
725
|
* Fuse (union) two solids and return evolution tracking data.
|
|
711
726
|
*
|
package/brepkit_wasm_bg.js
CHANGED
|
@@ -1514,6 +1514,31 @@ export class BrepKernel {
|
|
|
1514
1514
|
}
|
|
1515
1515
|
return ret[0] >>> 0;
|
|
1516
1516
|
}
|
|
1517
|
+
/**
|
|
1518
|
+
* Fuse (union) many solids into one in a single call.
|
|
1519
|
+
*
|
|
1520
|
+
* Faster than a left-fold over `fuse`: overlapping solids are reduced
|
|
1521
|
+
* pairwise in a balanced tree while disjoint groups are merged directly
|
|
1522
|
+
* without a boolean.
|
|
1523
|
+
*
|
|
1524
|
+
* Returns a new solid handle (`u32`).
|
|
1525
|
+
*
|
|
1526
|
+
* # Errors
|
|
1527
|
+
*
|
|
1528
|
+
* Returns an error if any solid handle is invalid, the list is empty,
|
|
1529
|
+
* or a boolean operation produces an empty or non-manifold result.
|
|
1530
|
+
* @param {Uint32Array} solid_handles
|
|
1531
|
+
* @returns {number}
|
|
1532
|
+
*/
|
|
1533
|
+
fuseAll(solid_handles) {
|
|
1534
|
+
const ptr0 = passArray32ToWasm0(solid_handles, wasm.__wbindgen_malloc);
|
|
1535
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1536
|
+
const ret = wasm.brepkernel_fuseAll(this.__wbg_ptr, ptr0, len0);
|
|
1537
|
+
if (ret[2]) {
|
|
1538
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1539
|
+
}
|
|
1540
|
+
return ret[0] >>> 0;
|
|
1541
|
+
}
|
|
1517
1542
|
/**
|
|
1518
1543
|
* Fuse (union) two solids and return evolution tracking data.
|
|
1519
1544
|
*
|
|
@@ -5149,13 +5174,13 @@ export function __wbg___wbindgen_debug_string_0accd80f45e5faa2(arg0, arg1) {
|
|
|
5149
5174
|
export function __wbg___wbindgen_throw_1506f2235d1bdba0(arg0, arg1) {
|
|
5150
5175
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
5151
5176
|
}
|
|
5152
|
-
export function
|
|
5177
|
+
export function __wbg_error_1d04b40286f86cbf(arg0, arg1) {
|
|
5153
5178
|
console.error(getStringFromWasm0(arg0, arg1));
|
|
5154
5179
|
}
|
|
5155
|
-
export function
|
|
5180
|
+
export function __wbg_log_c117461bab9276c2(arg0, arg1) {
|
|
5156
5181
|
console.log(getStringFromWasm0(arg0, arg1));
|
|
5157
5182
|
}
|
|
5158
|
-
export function
|
|
5183
|
+
export function __wbg_warn_a7a43d8de40f29f6(arg0, arg1) {
|
|
5159
5184
|
console.warn(getStringFromWasm0(arg0, arg1));
|
|
5160
5185
|
}
|
|
5161
5186
|
export function __wbindgen_cast_0000000000000001(arg0, arg1) {
|
package/brepkit_wasm_bg.wasm
CHANGED
|
Binary file
|
package/brepkit_wasm_node.cjs
CHANGED
|
@@ -1516,6 +1516,31 @@ class BrepKernel {
|
|
|
1516
1516
|
}
|
|
1517
1517
|
return ret[0] >>> 0;
|
|
1518
1518
|
}
|
|
1519
|
+
/**
|
|
1520
|
+
* Fuse (union) many solids into one in a single call.
|
|
1521
|
+
*
|
|
1522
|
+
* Faster than a left-fold over `fuse`: overlapping solids are reduced
|
|
1523
|
+
* pairwise in a balanced tree while disjoint groups are merged directly
|
|
1524
|
+
* without a boolean.
|
|
1525
|
+
*
|
|
1526
|
+
* Returns a new solid handle (`u32`).
|
|
1527
|
+
*
|
|
1528
|
+
* # Errors
|
|
1529
|
+
*
|
|
1530
|
+
* Returns an error if any solid handle is invalid, the list is empty,
|
|
1531
|
+
* or a boolean operation produces an empty or non-manifold result.
|
|
1532
|
+
* @param {Uint32Array} solid_handles
|
|
1533
|
+
* @returns {number}
|
|
1534
|
+
*/
|
|
1535
|
+
fuseAll(solid_handles) {
|
|
1536
|
+
const ptr0 = passArray32ToWasm0(solid_handles, wasm.__wbindgen_malloc);
|
|
1537
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1538
|
+
const ret = wasm.brepkernel_fuseAll(this.__wbg_ptr, ptr0, len0);
|
|
1539
|
+
if (ret[2]) {
|
|
1540
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1541
|
+
}
|
|
1542
|
+
return ret[0] >>> 0;
|
|
1543
|
+
}
|
|
1519
1544
|
/**
|
|
1520
1545
|
* Fuse (union) two solids and return evolution tracking data.
|
|
1521
1546
|
*
|
|
@@ -5161,13 +5186,13 @@ function __wbg_get_imports() {
|
|
|
5161
5186
|
__wbg___wbindgen_throw_1506f2235d1bdba0: function(arg0, arg1) {
|
|
5162
5187
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
5163
5188
|
},
|
|
5164
|
-
|
|
5189
|
+
__wbg_error_1d04b40286f86cbf: function(arg0, arg1) {
|
|
5165
5190
|
console.error(getStringFromWasm0(arg0, arg1));
|
|
5166
5191
|
},
|
|
5167
|
-
|
|
5192
|
+
__wbg_log_c117461bab9276c2: function(arg0, arg1) {
|
|
5168
5193
|
console.log(getStringFromWasm0(arg0, arg1));
|
|
5169
5194
|
},
|
|
5170
|
-
|
|
5195
|
+
__wbg_warn_a7a43d8de40f29f6: function(arg0, arg1) {
|
|
5171
5196
|
console.warn(getStringFromWasm0(arg0, arg1));
|
|
5172
5197
|
},
|
|
5173
5198
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
package/package.json
CHANGED