brepkit-wasm 2.105.2 → 2.106.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 +30 -3
- package/brepkit_wasm_bg.wasm +0 -0
- package/brepkit_wasm_node.cjs +30 -3
- package/package.json +1 -1
package/brepkit_wasm.d.ts
CHANGED
|
@@ -651,6 +651,21 @@ export class BrepKernel {
|
|
|
651
651
|
* Returns a new solid handle.
|
|
652
652
|
*/
|
|
653
653
|
filletVariable(solid: number, json: string): number;
|
|
654
|
+
/**
|
|
655
|
+
* Apply a constant-radius fillet and return face-evolution tracking data.
|
|
656
|
+
*
|
|
657
|
+
* Returns a JSON string `{"solid": <u32>, "evolution": {modified,
|
|
658
|
+
* generated, deleted}}` — the same shape as `fuseWithEvolution`. Blend
|
|
659
|
+
* faces appear under `generated` and surviving faces under `modified`.
|
|
660
|
+
* Provenance is matched geometrically (face normal + centroid), so it is
|
|
661
|
+
* unaffected by how the fillet renumbers faces.
|
|
662
|
+
*
|
|
663
|
+
* # Errors
|
|
664
|
+
*
|
|
665
|
+
* Returns an error if a handle is invalid, the radius is non-positive, or
|
|
666
|
+
* the fillet fails.
|
|
667
|
+
*/
|
|
668
|
+
filletWithEvolution(solid: number, edge_handles: Uint32Array, radius: number): any;
|
|
654
669
|
/**
|
|
655
670
|
* Fix face orientations to ensure consistent outward normals.
|
|
656
671
|
*
|
package/brepkit_wasm_bg.js
CHANGED
|
@@ -1410,6 +1410,33 @@ export class BrepKernel {
|
|
|
1410
1410
|
}
|
|
1411
1411
|
return ret[0] >>> 0;
|
|
1412
1412
|
}
|
|
1413
|
+
/**
|
|
1414
|
+
* Apply a constant-radius fillet and return face-evolution tracking data.
|
|
1415
|
+
*
|
|
1416
|
+
* Returns a JSON string `{"solid": <u32>, "evolution": {modified,
|
|
1417
|
+
* generated, deleted}}` — the same shape as `fuseWithEvolution`. Blend
|
|
1418
|
+
* faces appear under `generated` and surviving faces under `modified`.
|
|
1419
|
+
* Provenance is matched geometrically (face normal + centroid), so it is
|
|
1420
|
+
* unaffected by how the fillet renumbers faces.
|
|
1421
|
+
*
|
|
1422
|
+
* # Errors
|
|
1423
|
+
*
|
|
1424
|
+
* Returns an error if a handle is invalid, the radius is non-positive, or
|
|
1425
|
+
* the fillet fails.
|
|
1426
|
+
* @param {number} solid
|
|
1427
|
+
* @param {Uint32Array} edge_handles
|
|
1428
|
+
* @param {number} radius
|
|
1429
|
+
* @returns {any}
|
|
1430
|
+
*/
|
|
1431
|
+
filletWithEvolution(solid, edge_handles, radius) {
|
|
1432
|
+
const ptr0 = passArray32ToWasm0(edge_handles, wasm.__wbindgen_malloc);
|
|
1433
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1434
|
+
const ret = wasm.brepkernel_filletWithEvolution(this.__wbg_ptr, solid, ptr0, len0, radius);
|
|
1435
|
+
if (ret[2]) {
|
|
1436
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1437
|
+
}
|
|
1438
|
+
return takeFromExternrefTable0(ret[0]);
|
|
1439
|
+
}
|
|
1413
1440
|
/**
|
|
1414
1441
|
* Fix face orientations to ensure consistent outward normals.
|
|
1415
1442
|
*
|
|
@@ -4898,13 +4925,13 @@ export function __wbg___wbindgen_debug_string_0accd80f45e5faa2(arg0, arg1) {
|
|
|
4898
4925
|
export function __wbg___wbindgen_throw_1506f2235d1bdba0(arg0, arg1) {
|
|
4899
4926
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
4900
4927
|
}
|
|
4901
|
-
export function
|
|
4928
|
+
export function __wbg_error_32c3f14b53b5fdcf(arg0, arg1) {
|
|
4902
4929
|
console.error(getStringFromWasm0(arg0, arg1));
|
|
4903
4930
|
}
|
|
4904
|
-
export function
|
|
4931
|
+
export function __wbg_log_7dab0f19c8396a35(arg0, arg1) {
|
|
4905
4932
|
console.log(getStringFromWasm0(arg0, arg1));
|
|
4906
4933
|
}
|
|
4907
|
-
export function
|
|
4934
|
+
export function __wbg_warn_27a5a4aedfbb537f(arg0, arg1) {
|
|
4908
4935
|
console.warn(getStringFromWasm0(arg0, arg1));
|
|
4909
4936
|
}
|
|
4910
4937
|
export function __wbindgen_cast_0000000000000001(arg0, arg1) {
|
package/brepkit_wasm_bg.wasm
CHANGED
|
Binary file
|
package/brepkit_wasm_node.cjs
CHANGED
|
@@ -1412,6 +1412,33 @@ class BrepKernel {
|
|
|
1412
1412
|
}
|
|
1413
1413
|
return ret[0] >>> 0;
|
|
1414
1414
|
}
|
|
1415
|
+
/**
|
|
1416
|
+
* Apply a constant-radius fillet and return face-evolution tracking data.
|
|
1417
|
+
*
|
|
1418
|
+
* Returns a JSON string `{"solid": <u32>, "evolution": {modified,
|
|
1419
|
+
* generated, deleted}}` — the same shape as `fuseWithEvolution`. Blend
|
|
1420
|
+
* faces appear under `generated` and surviving faces under `modified`.
|
|
1421
|
+
* Provenance is matched geometrically (face normal + centroid), so it is
|
|
1422
|
+
* unaffected by how the fillet renumbers faces.
|
|
1423
|
+
*
|
|
1424
|
+
* # Errors
|
|
1425
|
+
*
|
|
1426
|
+
* Returns an error if a handle is invalid, the radius is non-positive, or
|
|
1427
|
+
* the fillet fails.
|
|
1428
|
+
* @param {number} solid
|
|
1429
|
+
* @param {Uint32Array} edge_handles
|
|
1430
|
+
* @param {number} radius
|
|
1431
|
+
* @returns {any}
|
|
1432
|
+
*/
|
|
1433
|
+
filletWithEvolution(solid, edge_handles, radius) {
|
|
1434
|
+
const ptr0 = passArray32ToWasm0(edge_handles, wasm.__wbindgen_malloc);
|
|
1435
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1436
|
+
const ret = wasm.brepkernel_filletWithEvolution(this.__wbg_ptr, solid, ptr0, len0, radius);
|
|
1437
|
+
if (ret[2]) {
|
|
1438
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1439
|
+
}
|
|
1440
|
+
return takeFromExternrefTable0(ret[0]);
|
|
1441
|
+
}
|
|
1415
1442
|
/**
|
|
1416
1443
|
* Fix face orientations to ensure consistent outward normals.
|
|
1417
1444
|
*
|
|
@@ -4910,13 +4937,13 @@ function __wbg_get_imports() {
|
|
|
4910
4937
|
__wbg___wbindgen_throw_1506f2235d1bdba0: function(arg0, arg1) {
|
|
4911
4938
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
4912
4939
|
},
|
|
4913
|
-
|
|
4940
|
+
__wbg_error_32c3f14b53b5fdcf: function(arg0, arg1) {
|
|
4914
4941
|
console.error(getStringFromWasm0(arg0, arg1));
|
|
4915
4942
|
},
|
|
4916
|
-
|
|
4943
|
+
__wbg_log_7dab0f19c8396a35: function(arg0, arg1) {
|
|
4917
4944
|
console.log(getStringFromWasm0(arg0, arg1));
|
|
4918
4945
|
},
|
|
4919
|
-
|
|
4946
|
+
__wbg_warn_27a5a4aedfbb537f: function(arg0, arg1) {
|
|
4920
4947
|
console.warn(getStringFromWasm0(arg0, arg1));
|
|
4921
4948
|
},
|
|
4922
4949
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
package/package.json
CHANGED