brepkit-wasm 2.103.2 → 2.104.1
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 +12 -0
- package/brepkit_wasm_bg.js +25 -3
- package/brepkit_wasm_bg.wasm +0 -0
- package/brepkit_wasm_node.cjs +25 -3
- package/package.json +1 -1
package/brepkit_wasm.d.ts
CHANGED
|
@@ -867,6 +867,18 @@ export class BrepKernel {
|
|
|
867
867
|
* Returns an error if the solid handle is invalid.
|
|
868
868
|
*/
|
|
869
869
|
getSolidFaces(solid: number): Uint32Array;
|
|
870
|
+
/**
|
|
871
|
+
* Get all shell handles of a solid.
|
|
872
|
+
*
|
|
873
|
+
* Returns the outer shell first, followed by any inner void shells
|
|
874
|
+
* (cavities produced by `shell`/hollow operations or boolean cuts).
|
|
875
|
+
* A simple solid such as a box reports exactly one shell.
|
|
876
|
+
*
|
|
877
|
+
* # Errors
|
|
878
|
+
*
|
|
879
|
+
* Returns an error if the solid handle is invalid.
|
|
880
|
+
*/
|
|
881
|
+
getSolidShells(solid: number): Uint32Array;
|
|
870
882
|
/**
|
|
871
883
|
* Get all vertex handles of a solid.
|
|
872
884
|
*
|
package/brepkit_wasm_bg.js
CHANGED
|
@@ -1906,6 +1906,28 @@ export class BrepKernel {
|
|
|
1906
1906
|
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
1907
1907
|
return v1;
|
|
1908
1908
|
}
|
|
1909
|
+
/**
|
|
1910
|
+
* Get all shell handles of a solid.
|
|
1911
|
+
*
|
|
1912
|
+
* Returns the outer shell first, followed by any inner void shells
|
|
1913
|
+
* (cavities produced by `shell`/hollow operations or boolean cuts).
|
|
1914
|
+
* A simple solid such as a box reports exactly one shell.
|
|
1915
|
+
*
|
|
1916
|
+
* # Errors
|
|
1917
|
+
*
|
|
1918
|
+
* Returns an error if the solid handle is invalid.
|
|
1919
|
+
* @param {number} solid
|
|
1920
|
+
* @returns {Uint32Array}
|
|
1921
|
+
*/
|
|
1922
|
+
getSolidShells(solid) {
|
|
1923
|
+
const ret = wasm.brepkernel_getSolidShells(this.__wbg_ptr, solid);
|
|
1924
|
+
if (ret[3]) {
|
|
1925
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
1926
|
+
}
|
|
1927
|
+
var v1 = getArrayU32FromWasm0(ret[0], ret[1]).slice();
|
|
1928
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
1929
|
+
return v1;
|
|
1930
|
+
}
|
|
1909
1931
|
/**
|
|
1910
1932
|
* Get all vertex handles of a solid.
|
|
1911
1933
|
*
|
|
@@ -4782,13 +4804,13 @@ export function __wbg___wbindgen_debug_string_0accd80f45e5faa2(arg0, arg1) {
|
|
|
4782
4804
|
export function __wbg___wbindgen_throw_1506f2235d1bdba0(arg0, arg1) {
|
|
4783
4805
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
4784
4806
|
}
|
|
4785
|
-
export function
|
|
4807
|
+
export function __wbg_error_f717a7bea0dce9e2(arg0, arg1) {
|
|
4786
4808
|
console.error(getStringFromWasm0(arg0, arg1));
|
|
4787
4809
|
}
|
|
4788
|
-
export function
|
|
4810
|
+
export function __wbg_log_321262308bd2625b(arg0, arg1) {
|
|
4789
4811
|
console.log(getStringFromWasm0(arg0, arg1));
|
|
4790
4812
|
}
|
|
4791
|
-
export function
|
|
4813
|
+
export function __wbg_warn_38b5e2481879c1f9(arg0, arg1) {
|
|
4792
4814
|
console.warn(getStringFromWasm0(arg0, arg1));
|
|
4793
4815
|
}
|
|
4794
4816
|
export function __wbindgen_cast_0000000000000001(arg0, arg1) {
|
package/brepkit_wasm_bg.wasm
CHANGED
|
Binary file
|
package/brepkit_wasm_node.cjs
CHANGED
|
@@ -1908,6 +1908,28 @@ class BrepKernel {
|
|
|
1908
1908
|
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
1909
1909
|
return v1;
|
|
1910
1910
|
}
|
|
1911
|
+
/**
|
|
1912
|
+
* Get all shell handles of a solid.
|
|
1913
|
+
*
|
|
1914
|
+
* Returns the outer shell first, followed by any inner void shells
|
|
1915
|
+
* (cavities produced by `shell`/hollow operations or boolean cuts).
|
|
1916
|
+
* A simple solid such as a box reports exactly one shell.
|
|
1917
|
+
*
|
|
1918
|
+
* # Errors
|
|
1919
|
+
*
|
|
1920
|
+
* Returns an error if the solid handle is invalid.
|
|
1921
|
+
* @param {number} solid
|
|
1922
|
+
* @returns {Uint32Array}
|
|
1923
|
+
*/
|
|
1924
|
+
getSolidShells(solid) {
|
|
1925
|
+
const ret = wasm.brepkernel_getSolidShells(this.__wbg_ptr, solid);
|
|
1926
|
+
if (ret[3]) {
|
|
1927
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
1928
|
+
}
|
|
1929
|
+
var v1 = getArrayU32FromWasm0(ret[0], ret[1]).slice();
|
|
1930
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
1931
|
+
return v1;
|
|
1932
|
+
}
|
|
1911
1933
|
/**
|
|
1912
1934
|
* Get all vertex handles of a solid.
|
|
1913
1935
|
*
|
|
@@ -4793,13 +4815,13 @@ function __wbg_get_imports() {
|
|
|
4793
4815
|
__wbg___wbindgen_throw_1506f2235d1bdba0: function(arg0, arg1) {
|
|
4794
4816
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
4795
4817
|
},
|
|
4796
|
-
|
|
4818
|
+
__wbg_error_f717a7bea0dce9e2: function(arg0, arg1) {
|
|
4797
4819
|
console.error(getStringFromWasm0(arg0, arg1));
|
|
4798
4820
|
},
|
|
4799
|
-
|
|
4821
|
+
__wbg_log_321262308bd2625b: function(arg0, arg1) {
|
|
4800
4822
|
console.log(getStringFromWasm0(arg0, arg1));
|
|
4801
4823
|
},
|
|
4802
|
-
|
|
4824
|
+
__wbg_warn_38b5e2481879c1f9: function(arg0, arg1) {
|
|
4803
4825
|
console.warn(getStringFromWasm0(arg0, arg1));
|
|
4804
4826
|
},
|
|
4805
4827
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
package/package.json
CHANGED