brepkit-wasm 2.115.7 → 2.115.9

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
@@ -1504,14 +1504,14 @@ export class BrepKernel {
1504
1504
  * automatically filtered out to reduce wireframe clutter. These edges
1505
1505
  * arise from boolean face-splitting and don't represent visible creases.
1506
1506
  */
1507
- meshEdges(solid: number, deflection: number): JsEdgeLines;
1507
+ meshEdges(solid: number, deflection: number, angular_tolerance?: number | null): JsEdgeLines;
1508
1508
  /**
1509
1509
  * Sample ALL edges of a solid (no smooth-edge filtering).
1510
1510
  *
1511
1511
  * Same as `meshEdges` but includes edges between co-surface faces.
1512
1512
  * Useful for debugging topology.
1513
1513
  */
1514
- meshEdgesAll(solid: number, deflection: number): JsEdgeLines;
1514
+ meshEdgesAll(solid: number, deflection: number, angular_tolerance?: number | null): JsEdgeLines;
1515
1515
  /**
1516
1516
  * Convex Minkowski sum of two solids (`A ⊕ B`).
1517
1517
  *
@@ -3323,10 +3323,11 @@ export class BrepKernel {
3323
3323
  * arise from boolean face-splitting and don't represent visible creases.
3324
3324
  * @param {number} solid
3325
3325
  * @param {number} deflection
3326
+ * @param {number | null} [angular_tolerance]
3326
3327
  * @returns {JsEdgeLines}
3327
3328
  */
3328
- meshEdges(solid, deflection) {
3329
- const ret = wasm.brepkernel_meshEdges(this.__wbg_ptr, solid, deflection);
3329
+ meshEdges(solid, deflection, angular_tolerance) {
3330
+ const ret = wasm.brepkernel_meshEdges(this.__wbg_ptr, solid, deflection, !isLikeNone(angular_tolerance), isLikeNone(angular_tolerance) ? 0 : angular_tolerance);
3330
3331
  if (ret[2]) {
3331
3332
  throw takeFromExternrefTable0(ret[1]);
3332
3333
  }
@@ -3339,10 +3340,11 @@ export class BrepKernel {
3339
3340
  * Useful for debugging topology.
3340
3341
  * @param {number} solid
3341
3342
  * @param {number} deflection
3343
+ * @param {number | null} [angular_tolerance]
3342
3344
  * @returns {JsEdgeLines}
3343
3345
  */
3344
- meshEdgesAll(solid, deflection) {
3345
- const ret = wasm.brepkernel_meshEdgesAll(this.__wbg_ptr, solid, deflection);
3346
+ meshEdgesAll(solid, deflection, angular_tolerance) {
3347
+ const ret = wasm.brepkernel_meshEdgesAll(this.__wbg_ptr, solid, deflection, !isLikeNone(angular_tolerance), isLikeNone(angular_tolerance) ? 0 : angular_tolerance);
3346
3348
  if (ret[2]) {
3347
3349
  throw takeFromExternrefTable0(ret[1]);
3348
3350
  }
@@ -5160,27 +5162,27 @@ export function setLogLevel(level) {
5160
5162
  throw takeFromExternrefTable0(ret[0]);
5161
5163
  }
5162
5164
  }
5163
- export function __wbg_Error_ef53bc310eb298a0(arg0, arg1) {
5165
+ export function __wbg_Error_fdd633d4bb5dd76a(arg0, arg1) {
5164
5166
  const ret = Error(getStringFromWasm0(arg0, arg1));
5165
5167
  return ret;
5166
5168
  }
5167
- export function __wbg___wbindgen_debug_string_0accd80f45e5faa2(arg0, arg1) {
5169
+ export function __wbg___wbindgen_debug_string_8a447059637473e2(arg0, arg1) {
5168
5170
  const ret = debugString(arg1);
5169
5171
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5170
5172
  const len1 = WASM_VECTOR_LEN;
5171
5173
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
5172
5174
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
5173
5175
  }
5174
- export function __wbg___wbindgen_throw_1506f2235d1bdba0(arg0, arg1) {
5176
+ export function __wbg___wbindgen_throw_ea4887a5f8f9a9db(arg0, arg1) {
5175
5177
  throw new Error(getStringFromWasm0(arg0, arg1));
5176
5178
  }
5177
- export function __wbg_error_85280e97df099286(arg0, arg1) {
5179
+ export function __wbg_error_a918cc3d5da26003(arg0, arg1) {
5178
5180
  console.error(getStringFromWasm0(arg0, arg1));
5179
5181
  }
5180
- export function __wbg_log_8de74072e3ff06e2(arg0, arg1) {
5182
+ export function __wbg_log_ef8fd06035dd4541(arg0, arg1) {
5181
5183
  console.log(getStringFromWasm0(arg0, arg1));
5182
5184
  }
5183
- export function __wbg_warn_c2598c6663033928(arg0, arg1) {
5185
+ export function __wbg_warn_954a75625fb30705(arg0, arg1) {
5184
5186
  console.warn(getStringFromWasm0(arg0, arg1));
5185
5187
  }
5186
5188
  export function __wbindgen_cast_0000000000000001(arg0, arg1) {
Binary file
@@ -3325,10 +3325,11 @@ class BrepKernel {
3325
3325
  * arise from boolean face-splitting and don't represent visible creases.
3326
3326
  * @param {number} solid
3327
3327
  * @param {number} deflection
3328
+ * @param {number | null} [angular_tolerance]
3328
3329
  * @returns {JsEdgeLines}
3329
3330
  */
3330
- meshEdges(solid, deflection) {
3331
- const ret = wasm.brepkernel_meshEdges(this.__wbg_ptr, solid, deflection);
3331
+ meshEdges(solid, deflection, angular_tolerance) {
3332
+ const ret = wasm.brepkernel_meshEdges(this.__wbg_ptr, solid, deflection, !isLikeNone(angular_tolerance), isLikeNone(angular_tolerance) ? 0 : angular_tolerance);
3332
3333
  if (ret[2]) {
3333
3334
  throw takeFromExternrefTable0(ret[1]);
3334
3335
  }
@@ -3341,10 +3342,11 @@ class BrepKernel {
3341
3342
  * Useful for debugging topology.
3342
3343
  * @param {number} solid
3343
3344
  * @param {number} deflection
3345
+ * @param {number | null} [angular_tolerance]
3344
3346
  * @returns {JsEdgeLines}
3345
3347
  */
3346
- meshEdgesAll(solid, deflection) {
3347
- const ret = wasm.brepkernel_meshEdgesAll(this.__wbg_ptr, solid, deflection);
3348
+ meshEdgesAll(solid, deflection, angular_tolerance) {
3349
+ const ret = wasm.brepkernel_meshEdgesAll(this.__wbg_ptr, solid, deflection, !isLikeNone(angular_tolerance), isLikeNone(angular_tolerance) ? 0 : angular_tolerance);
3348
3350
  if (ret[2]) {
3349
3351
  throw takeFromExternrefTable0(ret[1]);
3350
3352
  }
@@ -5172,27 +5174,27 @@ exports.setLogLevel = setLogLevel;
5172
5174
  function __wbg_get_imports() {
5173
5175
  const import0 = {
5174
5176
  __proto__: null,
5175
- __wbg_Error_ef53bc310eb298a0: function(arg0, arg1) {
5177
+ __wbg_Error_fdd633d4bb5dd76a: function(arg0, arg1) {
5176
5178
  const ret = Error(getStringFromWasm0(arg0, arg1));
5177
5179
  return ret;
5178
5180
  },
5179
- __wbg___wbindgen_debug_string_0accd80f45e5faa2: function(arg0, arg1) {
5181
+ __wbg___wbindgen_debug_string_8a447059637473e2: function(arg0, arg1) {
5180
5182
  const ret = debugString(arg1);
5181
5183
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5182
5184
  const len1 = WASM_VECTOR_LEN;
5183
5185
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
5184
5186
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
5185
5187
  },
5186
- __wbg___wbindgen_throw_1506f2235d1bdba0: function(arg0, arg1) {
5188
+ __wbg___wbindgen_throw_ea4887a5f8f9a9db: function(arg0, arg1) {
5187
5189
  throw new Error(getStringFromWasm0(arg0, arg1));
5188
5190
  },
5189
- __wbg_error_85280e97df099286: function(arg0, arg1) {
5191
+ __wbg_error_a918cc3d5da26003: function(arg0, arg1) {
5190
5192
  console.error(getStringFromWasm0(arg0, arg1));
5191
5193
  },
5192
- __wbg_log_8de74072e3ff06e2: function(arg0, arg1) {
5194
+ __wbg_log_ef8fd06035dd4541: function(arg0, arg1) {
5193
5195
  console.log(getStringFromWasm0(arg0, arg1));
5194
5196
  },
5195
- __wbg_warn_c2598c6663033928: function(arg0, arg1) {
5197
+ __wbg_warn_954a75625fb30705: function(arg0, arg1) {
5196
5198
  console.warn(getStringFromWasm0(arg0, arg1));
5197
5199
  },
5198
5200
  __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.115.7",
5
+ "version": "2.115.9",
6
6
  "license": "MIT OR Apache-2.0",
7
7
  "repository": {
8
8
  "type": "git",