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 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
  *
@@ -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
  *
Binary file
@@ -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
@@ -2,7 +2,7 @@
2
2
  "name": "brepkit-wasm",
3
3
  "type": "module",
4
4
  "description": "WebAssembly bindings for brepkit — browser-native B-Rep solid modeling",
5
- "version": "2.23.0",
5
+ "version": "2.24.0",
6
6
  "license": "MIT OR Apache-2.0",
7
7
  "repository": {
8
8
  "type": "git",