brepkit-wasm 4.5.11 → 4.6.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 +15 -1
- package/brepkit_wasm_bg.js +28 -4
- package/brepkit_wasm_bg.wasm +0 -0
- package/brepkit_wasm_node.cjs +28 -4
- package/package.json +1 -1
package/brepkit_wasm.d.ts
CHANGED
|
@@ -450,7 +450,9 @@ export class BrepKernel {
|
|
|
450
450
|
*/
|
|
451
451
|
evaluateEdgeCurve(edge: number, t: number): Float64Array;
|
|
452
452
|
/**
|
|
453
|
-
* Evaluate a
|
|
453
|
+
* Evaluate a face's outward normal at (u, v): its surface's normal,
|
|
454
|
+
* turned round on a reversed face (a bore cut into a solid faces its
|
|
455
|
+
* axis).
|
|
454
456
|
*
|
|
455
457
|
* Returns `[nx, ny, nz]`.
|
|
456
458
|
*/
|
|
@@ -901,6 +903,18 @@ export class BrepKernel {
|
|
|
901
903
|
* Returns an error if the solid handle is invalid.
|
|
902
904
|
*/
|
|
903
905
|
getSolidFaces(solid: number): Uint32Array;
|
|
906
|
+
/**
|
|
907
|
+
* Get one solid handle per separate piece of material in a solid.
|
|
908
|
+
*
|
|
909
|
+
* A boolean that leaves separate pieces (a slot cut through a bar)
|
|
910
|
+
* returns them in one solid. Each piece comes back as its own solid
|
|
911
|
+
* with its own cavities; a solid in one piece returns its own handle.
|
|
912
|
+
*
|
|
913
|
+
* # Errors
|
|
914
|
+
*
|
|
915
|
+
* Returns an error if the solid handle is invalid.
|
|
916
|
+
*/
|
|
917
|
+
getSolidPieces(solid: number): Uint32Array;
|
|
904
918
|
/**
|
|
905
919
|
* Get all shell handles of a solid.
|
|
906
920
|
*
|
package/brepkit_wasm_bg.js
CHANGED
|
@@ -1034,7 +1034,9 @@ export class BrepKernel {
|
|
|
1034
1034
|
return v1;
|
|
1035
1035
|
}
|
|
1036
1036
|
/**
|
|
1037
|
-
* Evaluate a
|
|
1037
|
+
* Evaluate a face's outward normal at (u, v): its surface's normal,
|
|
1038
|
+
* turned round on a reversed face (a bore cut into a solid faces its
|
|
1039
|
+
* axis).
|
|
1038
1040
|
*
|
|
1039
1041
|
* Returns `[nx, ny, nz]`.
|
|
1040
1042
|
* @param {number} face
|
|
@@ -2022,6 +2024,28 @@ export class BrepKernel {
|
|
|
2022
2024
|
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
2023
2025
|
return v1;
|
|
2024
2026
|
}
|
|
2027
|
+
/**
|
|
2028
|
+
* Get one solid handle per separate piece of material in a solid.
|
|
2029
|
+
*
|
|
2030
|
+
* A boolean that leaves separate pieces (a slot cut through a bar)
|
|
2031
|
+
* returns them in one solid. Each piece comes back as its own solid
|
|
2032
|
+
* with its own cavities; a solid in one piece returns its own handle.
|
|
2033
|
+
*
|
|
2034
|
+
* # Errors
|
|
2035
|
+
*
|
|
2036
|
+
* Returns an error if the solid handle is invalid.
|
|
2037
|
+
* @param {number} solid
|
|
2038
|
+
* @returns {Uint32Array}
|
|
2039
|
+
*/
|
|
2040
|
+
getSolidPieces(solid) {
|
|
2041
|
+
const ret = wasm.brepkernel_getSolidPieces(this.__wbg_ptr, solid);
|
|
2042
|
+
if (ret[3]) {
|
|
2043
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
2044
|
+
}
|
|
2045
|
+
var v1 = getArrayU32FromWasm0(ret[0], ret[1]).slice();
|
|
2046
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
2047
|
+
return v1;
|
|
2048
|
+
}
|
|
2025
2049
|
/**
|
|
2026
2050
|
* Get all shell handles of a solid.
|
|
2027
2051
|
*
|
|
@@ -5286,13 +5310,13 @@ export function __wbg___wbindgen_debug_string_4687d8d8c2017d52(arg0, arg1) {
|
|
|
5286
5310
|
export function __wbg___wbindgen_throw_41e9ee4f547fc59a(arg0, arg1) {
|
|
5287
5311
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
5288
5312
|
}
|
|
5289
|
-
export function
|
|
5313
|
+
export function __wbg_error_4baca408b6597b3f(arg0, arg1) {
|
|
5290
5314
|
console.error(getStringFromWasm0(arg0, arg1));
|
|
5291
5315
|
}
|
|
5292
|
-
export function
|
|
5316
|
+
export function __wbg_log_de3312e811cafce0(arg0, arg1) {
|
|
5293
5317
|
console.log(getStringFromWasm0(arg0, arg1));
|
|
5294
5318
|
}
|
|
5295
|
-
export function
|
|
5319
|
+
export function __wbg_warn_3e880ed77d9704f8(arg0, arg1) {
|
|
5296
5320
|
console.warn(getStringFromWasm0(arg0, arg1));
|
|
5297
5321
|
}
|
|
5298
5322
|
export function __wbindgen_generic_0000000000000001(arg0, arg1) {
|
package/brepkit_wasm_bg.wasm
CHANGED
|
Binary file
|
package/brepkit_wasm_node.cjs
CHANGED
|
@@ -1036,7 +1036,9 @@ class BrepKernel {
|
|
|
1036
1036
|
return v1;
|
|
1037
1037
|
}
|
|
1038
1038
|
/**
|
|
1039
|
-
* Evaluate a
|
|
1039
|
+
* Evaluate a face's outward normal at (u, v): its surface's normal,
|
|
1040
|
+
* turned round on a reversed face (a bore cut into a solid faces its
|
|
1041
|
+
* axis).
|
|
1040
1042
|
*
|
|
1041
1043
|
* Returns `[nx, ny, nz]`.
|
|
1042
1044
|
* @param {number} face
|
|
@@ -2024,6 +2026,28 @@ class BrepKernel {
|
|
|
2024
2026
|
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
2025
2027
|
return v1;
|
|
2026
2028
|
}
|
|
2029
|
+
/**
|
|
2030
|
+
* Get one solid handle per separate piece of material in a solid.
|
|
2031
|
+
*
|
|
2032
|
+
* A boolean that leaves separate pieces (a slot cut through a bar)
|
|
2033
|
+
* returns them in one solid. Each piece comes back as its own solid
|
|
2034
|
+
* with its own cavities; a solid in one piece returns its own handle.
|
|
2035
|
+
*
|
|
2036
|
+
* # Errors
|
|
2037
|
+
*
|
|
2038
|
+
* Returns an error if the solid handle is invalid.
|
|
2039
|
+
* @param {number} solid
|
|
2040
|
+
* @returns {Uint32Array}
|
|
2041
|
+
*/
|
|
2042
|
+
getSolidPieces(solid) {
|
|
2043
|
+
const ret = wasm.brepkernel_getSolidPieces(this.__wbg_ptr, solid);
|
|
2044
|
+
if (ret[3]) {
|
|
2045
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
2046
|
+
}
|
|
2047
|
+
var v1 = getArrayU32FromWasm0(ret[0], ret[1]).slice();
|
|
2048
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
2049
|
+
return v1;
|
|
2050
|
+
}
|
|
2027
2051
|
/**
|
|
2028
2052
|
* Get all shell handles of a solid.
|
|
2029
2053
|
*
|
|
@@ -5300,13 +5324,13 @@ function __wbg_get_imports() {
|
|
|
5300
5324
|
__wbg___wbindgen_throw_41e9ee4f547fc59a: function(arg0, arg1) {
|
|
5301
5325
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
5302
5326
|
},
|
|
5303
|
-
|
|
5327
|
+
__wbg_error_4baca408b6597b3f: function(arg0, arg1) {
|
|
5304
5328
|
console.error(getStringFromWasm0(arg0, arg1));
|
|
5305
5329
|
},
|
|
5306
|
-
|
|
5330
|
+
__wbg_log_de3312e811cafce0: function(arg0, arg1) {
|
|
5307
5331
|
console.log(getStringFromWasm0(arg0, arg1));
|
|
5308
5332
|
},
|
|
5309
|
-
|
|
5333
|
+
__wbg_warn_3e880ed77d9704f8: function(arg0, arg1) {
|
|
5310
5334
|
console.warn(getStringFromWasm0(arg0, arg1));
|
|
5311
5335
|
},
|
|
5312
5336
|
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
package/package.json
CHANGED