brepkit-wasm 4.6.5 → 4.6.7

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
@@ -1737,6 +1737,17 @@ export class BrepKernel {
1737
1737
  * Returns `[u, v, px, py, pz, distance]`.
1738
1738
  */
1739
1739
  projectPointOnSurface(face: number, px: number, py: number, pz: number): Float64Array;
1740
+ /**
1741
+ * Project several solids' edges together, as `projectEdges` does one
1742
+ * solid's: each edge is hidden where any of the solids lies in front of
1743
+ * it. Returns the same JSON string.
1744
+ *
1745
+ * # Errors
1746
+ *
1747
+ * Returns an error for an empty list, an invalid handle, a non-positive
1748
+ * `deflection`, or a degenerate `dir`/`x_axis`.
1749
+ */
1750
+ projectSolidsEdges(solids: Uint32Array, origin_x: number, origin_y: number, origin_z: number, dir_x: number, dir_y: number, dir_z: number, x_axis_x: number, x_axis_y: number, x_axis_z: number, hidden_lines: boolean, deflection: number): any;
1740
1751
  /**
1741
1752
  * Recognize geometric features in a solid.
1742
1753
  *
@@ -3890,6 +3890,38 @@ export class BrepKernel {
3890
3890
  wasm.__wbindgen_free(ret[0], ret[1] * 8, 8);
3891
3891
  return v1;
3892
3892
  }
3893
+ /**
3894
+ * Project several solids' edges together, as `projectEdges` does one
3895
+ * solid's: each edge is hidden where any of the solids lies in front of
3896
+ * it. Returns the same JSON string.
3897
+ *
3898
+ * # Errors
3899
+ *
3900
+ * Returns an error for an empty list, an invalid handle, a non-positive
3901
+ * `deflection`, or a degenerate `dir`/`x_axis`.
3902
+ * @param {Uint32Array} solids
3903
+ * @param {number} origin_x
3904
+ * @param {number} origin_y
3905
+ * @param {number} origin_z
3906
+ * @param {number} dir_x
3907
+ * @param {number} dir_y
3908
+ * @param {number} dir_z
3909
+ * @param {number} x_axis_x
3910
+ * @param {number} x_axis_y
3911
+ * @param {number} x_axis_z
3912
+ * @param {boolean} hidden_lines
3913
+ * @param {number} deflection
3914
+ * @returns {any}
3915
+ */
3916
+ projectSolidsEdges(solids, origin_x, origin_y, origin_z, dir_x, dir_y, dir_z, x_axis_x, x_axis_y, x_axis_z, hidden_lines, deflection) {
3917
+ const ptr0 = passArray32ToWasm0(solids, wasm.__wbindgen_malloc);
3918
+ const len0 = WASM_VECTOR_LEN;
3919
+ const ret = wasm.brepkernel_projectSolidsEdges(this.__wbg_ptr, ptr0, len0, origin_x, origin_y, origin_z, dir_x, dir_y, dir_z, x_axis_x, x_axis_y, x_axis_z, hidden_lines, deflection);
3920
+ if (ret[2]) {
3921
+ throw takeFromExternrefTable0(ret[1]);
3922
+ }
3923
+ return takeFromExternrefTable0(ret[0]);
3924
+ }
3893
3925
  /**
3894
3926
  * Recognize geometric features in a solid.
3895
3927
  *
@@ -5312,13 +5344,13 @@ export function __wbg___wbindgen_debug_string_4687d8d8c2017d52(arg0, arg1) {
5312
5344
  export function __wbg___wbindgen_throw_41e9ee4f547fc59a(arg0, arg1) {
5313
5345
  throw new Error(getStringFromWasm0(arg0, arg1));
5314
5346
  }
5315
- export function __wbg_error_b5fecbc84958b3b7(arg0, arg1) {
5347
+ export function __wbg_error_9f87fcb5ec538b9a(arg0, arg1) {
5316
5348
  console.error(getStringFromWasm0(arg0, arg1));
5317
5349
  }
5318
- export function __wbg_log_2880a07c4bcb03c4(arg0, arg1) {
5350
+ export function __wbg_log_e4aeade211960f4f(arg0, arg1) {
5319
5351
  console.log(getStringFromWasm0(arg0, arg1));
5320
5352
  }
5321
- export function __wbg_warn_08da6fae99348963(arg0, arg1) {
5353
+ export function __wbg_warn_134b6f67d4b8589d(arg0, arg1) {
5322
5354
  console.warn(getStringFromWasm0(arg0, arg1));
5323
5355
  }
5324
5356
  export function __wbindgen_generic_0000000000000001(arg0, arg1) {
Binary file
@@ -3892,6 +3892,38 @@ class BrepKernel {
3892
3892
  wasm.__wbindgen_free(ret[0], ret[1] * 8, 8);
3893
3893
  return v1;
3894
3894
  }
3895
+ /**
3896
+ * Project several solids' edges together, as `projectEdges` does one
3897
+ * solid's: each edge is hidden where any of the solids lies in front of
3898
+ * it. Returns the same JSON string.
3899
+ *
3900
+ * # Errors
3901
+ *
3902
+ * Returns an error for an empty list, an invalid handle, a non-positive
3903
+ * `deflection`, or a degenerate `dir`/`x_axis`.
3904
+ * @param {Uint32Array} solids
3905
+ * @param {number} origin_x
3906
+ * @param {number} origin_y
3907
+ * @param {number} origin_z
3908
+ * @param {number} dir_x
3909
+ * @param {number} dir_y
3910
+ * @param {number} dir_z
3911
+ * @param {number} x_axis_x
3912
+ * @param {number} x_axis_y
3913
+ * @param {number} x_axis_z
3914
+ * @param {boolean} hidden_lines
3915
+ * @param {number} deflection
3916
+ * @returns {any}
3917
+ */
3918
+ projectSolidsEdges(solids, origin_x, origin_y, origin_z, dir_x, dir_y, dir_z, x_axis_x, x_axis_y, x_axis_z, hidden_lines, deflection) {
3919
+ const ptr0 = passArray32ToWasm0(solids, wasm.__wbindgen_malloc);
3920
+ const len0 = WASM_VECTOR_LEN;
3921
+ const ret = wasm.brepkernel_projectSolidsEdges(this.__wbg_ptr, ptr0, len0, origin_x, origin_y, origin_z, dir_x, dir_y, dir_z, x_axis_x, x_axis_y, x_axis_z, hidden_lines, deflection);
3922
+ if (ret[2]) {
3923
+ throw takeFromExternrefTable0(ret[1]);
3924
+ }
3925
+ return takeFromExternrefTable0(ret[0]);
3926
+ }
3895
3927
  /**
3896
3928
  * Recognize geometric features in a solid.
3897
3929
  *
@@ -5326,13 +5358,13 @@ function __wbg_get_imports() {
5326
5358
  __wbg___wbindgen_throw_41e9ee4f547fc59a: function(arg0, arg1) {
5327
5359
  throw new Error(getStringFromWasm0(arg0, arg1));
5328
5360
  },
5329
- __wbg_error_b5fecbc84958b3b7: function(arg0, arg1) {
5361
+ __wbg_error_9f87fcb5ec538b9a: function(arg0, arg1) {
5330
5362
  console.error(getStringFromWasm0(arg0, arg1));
5331
5363
  },
5332
- __wbg_log_2880a07c4bcb03c4: function(arg0, arg1) {
5364
+ __wbg_log_e4aeade211960f4f: function(arg0, arg1) {
5333
5365
  console.log(getStringFromWasm0(arg0, arg1));
5334
5366
  },
5335
- __wbg_warn_08da6fae99348963: function(arg0, arg1) {
5367
+ __wbg_warn_134b6f67d4b8589d: function(arg0, arg1) {
5336
5368
  console.warn(getStringFromWasm0(arg0, arg1));
5337
5369
  },
5338
5370
  __wbindgen_generic_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": "4.6.5",
5
+ "version": "4.6.7",
6
6
  "license": "AGPL-3.0-only",
7
7
  "repository": {
8
8
  "type": "git",