brepkit-wasm 2.23.0 → 2.24.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 +10 -0
- package/brepkit_wasm_bg.js +19 -0
- package/brepkit_wasm_bg.wasm +0 -0
- package/brepkit_wasm_node.cjs +19 -0
- package/package.json +1 -1
package/brepkit_wasm.d.ts
CHANGED
|
@@ -1299,6 +1299,16 @@ export class BrepKernel {
|
|
|
1299
1299
|
* Returns an error if the distance is zero or the solid is invalid.
|
|
1300
1300
|
*/
|
|
1301
1301
|
offsetSolid(solid: number, distance: number): number;
|
|
1302
|
+
/**
|
|
1303
|
+
* Offset all faces of a solid outward or inward (V2 pipeline).
|
|
1304
|
+
*
|
|
1305
|
+
* Uses the new `brepkit-offset` engine with intersection-based joints.
|
|
1306
|
+
*
|
|
1307
|
+
* # Errors
|
|
1308
|
+
*
|
|
1309
|
+
* Returns an error if the distance is not finite or the solid is invalid.
|
|
1310
|
+
*/
|
|
1311
|
+
offsetSolidV2(solid: number, distance: number): number;
|
|
1302
1312
|
/**
|
|
1303
1313
|
* Offset a wire on a planar face.
|
|
1304
1314
|
*
|
package/brepkit_wasm_bg.js
CHANGED
|
@@ -2932,6 +2932,25 @@ export class BrepKernel {
|
|
|
2932
2932
|
}
|
|
2933
2933
|
return ret[0] >>> 0;
|
|
2934
2934
|
}
|
|
2935
|
+
/**
|
|
2936
|
+
* Offset all faces of a solid outward or inward (V2 pipeline).
|
|
2937
|
+
*
|
|
2938
|
+
* Uses the new `brepkit-offset` engine with intersection-based joints.
|
|
2939
|
+
*
|
|
2940
|
+
* # Errors
|
|
2941
|
+
*
|
|
2942
|
+
* Returns an error if the distance is not finite or the solid is invalid.
|
|
2943
|
+
* @param {number} solid
|
|
2944
|
+
* @param {number} distance
|
|
2945
|
+
* @returns {number}
|
|
2946
|
+
*/
|
|
2947
|
+
offsetSolidV2(solid, distance) {
|
|
2948
|
+
const ret = wasm.brepkernel_offsetSolidV2(this.__wbg_ptr, solid, distance);
|
|
2949
|
+
if (ret[2]) {
|
|
2950
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
2951
|
+
}
|
|
2952
|
+
return ret[0] >>> 0;
|
|
2953
|
+
}
|
|
2935
2954
|
/**
|
|
2936
2955
|
* Offset a wire on a planar face.
|
|
2937
2956
|
*
|
package/brepkit_wasm_bg.wasm
CHANGED
|
Binary file
|
package/brepkit_wasm_node.cjs
CHANGED
|
@@ -2934,6 +2934,25 @@ class BrepKernel {
|
|
|
2934
2934
|
}
|
|
2935
2935
|
return ret[0] >>> 0;
|
|
2936
2936
|
}
|
|
2937
|
+
/**
|
|
2938
|
+
* Offset all faces of a solid outward or inward (V2 pipeline).
|
|
2939
|
+
*
|
|
2940
|
+
* Uses the new `brepkit-offset` engine with intersection-based joints.
|
|
2941
|
+
*
|
|
2942
|
+
* # Errors
|
|
2943
|
+
*
|
|
2944
|
+
* Returns an error if the distance is not finite or the solid is invalid.
|
|
2945
|
+
* @param {number} solid
|
|
2946
|
+
* @param {number} distance
|
|
2947
|
+
* @returns {number}
|
|
2948
|
+
*/
|
|
2949
|
+
offsetSolidV2(solid, distance) {
|
|
2950
|
+
const ret = wasm.brepkernel_offsetSolidV2(this.__wbg_ptr, solid, distance);
|
|
2951
|
+
if (ret[2]) {
|
|
2952
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
2953
|
+
}
|
|
2954
|
+
return ret[0] >>> 0;
|
|
2955
|
+
}
|
|
2937
2956
|
/**
|
|
2938
2957
|
* Offset a wire on a planar face.
|
|
2939
2958
|
*
|
package/package.json
CHANGED