brepkit-wasm 2.98.0 → 2.100.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
@@ -309,6 +309,17 @@ export class BrepKernel {
309
309
  * have 16 elements, or the matrix is singular.
310
310
  */
311
311
  copyAndTransformSolid(solid: number, matrix: Float64Array): number;
312
+ /**
313
+ * Deep copy a face, returning a new independent face handle.
314
+ *
315
+ * The copy shares no sub-entities with the original, so translating it
316
+ * (to form a pocket or boss profile) does not mutate the donor solid.
317
+ *
318
+ * # Errors
319
+ *
320
+ * Returns an error if the face handle is invalid.
321
+ */
322
+ copyFace(face: number): number;
312
323
  /**
313
324
  * Deep copy a solid, returning a new independent solid handle.
314
325
  *
@@ -645,6 +645,25 @@ export class BrepKernel {
645
645
  }
646
646
  return ret[0] >>> 0;
647
647
  }
648
+ /**
649
+ * Deep copy a face, returning a new independent face handle.
650
+ *
651
+ * The copy shares no sub-entities with the original, so translating it
652
+ * (to form a pocket or boss profile) does not mutate the donor solid.
653
+ *
654
+ * # Errors
655
+ *
656
+ * Returns an error if the face handle is invalid.
657
+ * @param {number} face
658
+ * @returns {number}
659
+ */
660
+ copyFace(face) {
661
+ const ret = wasm.brepkernel_copyFace(this.__wbg_ptr, face);
662
+ if (ret[2]) {
663
+ throw takeFromExternrefTable0(ret[1]);
664
+ }
665
+ return ret[0] >>> 0;
666
+ }
648
667
  /**
649
668
  * Deep copy a solid, returning a new independent solid handle.
650
669
  *
@@ -4727,13 +4746,13 @@ export function __wbg___wbindgen_debug_string_edece8177ad01481(arg0, arg1) {
4727
4746
  export function __wbg___wbindgen_throw_9c31b086c2b26051(arg0, arg1) {
4728
4747
  throw new Error(getStringFromWasm0(arg0, arg1));
4729
4748
  }
4730
- export function __wbg_error_d4a3a8206d7de779(arg0, arg1) {
4749
+ export function __wbg_error_3993245e93912188(arg0, arg1) {
4731
4750
  console.error(getStringFromWasm0(arg0, arg1));
4732
4751
  }
4733
- export function __wbg_log_21a849baa85b6bfa(arg0, arg1) {
4752
+ export function __wbg_log_dd3109e21780f5a5(arg0, arg1) {
4734
4753
  console.log(getStringFromWasm0(arg0, arg1));
4735
4754
  }
4736
- export function __wbg_warn_96d719a753ea1a18(arg0, arg1) {
4755
+ export function __wbg_warn_6d8deb96e1629b5d(arg0, arg1) {
4737
4756
  console.warn(getStringFromWasm0(arg0, arg1));
4738
4757
  }
4739
4758
  export function __wbindgen_cast_0000000000000001(arg0, arg1) {
Binary file
@@ -647,6 +647,25 @@ class BrepKernel {
647
647
  }
648
648
  return ret[0] >>> 0;
649
649
  }
650
+ /**
651
+ * Deep copy a face, returning a new independent face handle.
652
+ *
653
+ * The copy shares no sub-entities with the original, so translating it
654
+ * (to form a pocket or boss profile) does not mutate the donor solid.
655
+ *
656
+ * # Errors
657
+ *
658
+ * Returns an error if the face handle is invalid.
659
+ * @param {number} face
660
+ * @returns {number}
661
+ */
662
+ copyFace(face) {
663
+ const ret = wasm.brepkernel_copyFace(this.__wbg_ptr, face);
664
+ if (ret[2]) {
665
+ throw takeFromExternrefTable0(ret[1]);
666
+ }
667
+ return ret[0] >>> 0;
668
+ }
650
669
  /**
651
670
  * Deep copy a solid, returning a new independent solid handle.
652
671
  *
@@ -4738,13 +4757,13 @@ function __wbg_get_imports() {
4738
4757
  __wbg___wbindgen_throw_9c31b086c2b26051: function(arg0, arg1) {
4739
4758
  throw new Error(getStringFromWasm0(arg0, arg1));
4740
4759
  },
4741
- __wbg_error_d4a3a8206d7de779: function(arg0, arg1) {
4760
+ __wbg_error_3993245e93912188: function(arg0, arg1) {
4742
4761
  console.error(getStringFromWasm0(arg0, arg1));
4743
4762
  },
4744
- __wbg_log_21a849baa85b6bfa: function(arg0, arg1) {
4763
+ __wbg_log_dd3109e21780f5a5: function(arg0, arg1) {
4745
4764
  console.log(getStringFromWasm0(arg0, arg1));
4746
4765
  },
4747
- __wbg_warn_96d719a753ea1a18: function(arg0, arg1) {
4766
+ __wbg_warn_6d8deb96e1629b5d: function(arg0, arg1) {
4748
4767
  console.warn(getStringFromWasm0(arg0, arg1));
4749
4768
  },
4750
4769
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
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.98.0",
5
+ "version": "2.100.0",
6
6
  "license": "MIT OR Apache-2.0",
7
7
  "repository": {
8
8
  "type": "git",