brepkit-wasm 4.11.24 → 4.11.26
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 +21 -12
- package/brepkit_wasm_bg.js +22 -14
- package/brepkit_wasm_bg.wasm +0 -0
- package/brepkit_wasm_node.cjs +22 -14
- package/package.json +1 -1
package/brepkit_wasm.d.ts
CHANGED
|
@@ -29,7 +29,8 @@ export interface MeshImportResult {
|
|
|
29
29
|
*/
|
|
30
30
|
solids: number[];
|
|
31
31
|
/**
|
|
32
|
-
* A shell handle for each body that does not
|
|
32
|
+
* A shell handle for each body that does not bound a solid: a body that
|
|
33
|
+
* does not close, and an inward closed body that crosses another body.
|
|
33
34
|
*/
|
|
34
35
|
shells: number[];
|
|
35
36
|
}
|
|
@@ -188,8 +189,10 @@ export class BrepKernel {
|
|
|
188
189
|
* Returns a checkpoint ID (zero-based index) that can be passed to
|
|
189
190
|
* `restore` or `discardCheckpoint`.
|
|
190
191
|
*
|
|
191
|
-
* The
|
|
192
|
-
*
|
|
192
|
+
* The topology records each change after the checkpoint, so a restore
|
|
193
|
+
* costs the changes and not the size of the topology. The assembly and
|
|
194
|
+
* sketch state is copied. Existing entity handles remain valid after
|
|
195
|
+
* restore.
|
|
193
196
|
*/
|
|
194
197
|
checkpoint(): number;
|
|
195
198
|
/**
|
|
@@ -1160,9 +1163,10 @@ export class BrepKernel {
|
|
|
1160
1163
|
*
|
|
1161
1164
|
* # Errors
|
|
1162
1165
|
*
|
|
1163
|
-
* Returns an error if the arrays are malformed,
|
|
1164
|
-
* does not close, or a body lies in
|
|
1165
|
-
* `importIndexedMeshParts` returns each part
|
|
1166
|
+
* Returns an error if the arrays are malformed, two closed bodies of
|
|
1167
|
+
* the mesh cross, a part of the mesh does not close, or a body lies in
|
|
1168
|
+
* the material of another. `importIndexedMeshParts` returns each part
|
|
1169
|
+
* of such a mesh.
|
|
1166
1170
|
*/
|
|
1167
1171
|
importIndexedMesh(positions: Float64Array | number[], indices: Uint32Array | number[]): number;
|
|
1168
1172
|
/**
|
|
@@ -1198,7 +1202,9 @@ export class BrepKernel {
|
|
|
1198
1202
|
*
|
|
1199
1203
|
* Returns a JSON string `{ solids: number[], shells: number[] }`. A
|
|
1200
1204
|
* closed body is a solid, with each inward closed body in it as a
|
|
1201
|
-
* cavity.
|
|
1205
|
+
* cavity. Two closed bodies that share an edge are two solids. A body
|
|
1206
|
+
* that does not close, and an inward closed body that crosses another
|
|
1207
|
+
* body, is a shell.
|
|
1202
1208
|
*
|
|
1203
1209
|
* # Errors
|
|
1204
1210
|
*
|
|
@@ -1214,9 +1220,10 @@ export class BrepKernel {
|
|
|
1214
1220
|
*
|
|
1215
1221
|
* # Errors
|
|
1216
1222
|
*
|
|
1217
|
-
* Returns an error if the STL data is malformed or empty,
|
|
1218
|
-
* the mesh does not close, or a
|
|
1219
|
-
*
|
|
1223
|
+
* Returns an error if the STL data is malformed or empty, two closed
|
|
1224
|
+
* bodies of the mesh cross, a part of the mesh does not close, or a
|
|
1225
|
+
* body lies in the material of another. `importStlParts` returns each
|
|
1226
|
+
* part of such a mesh.
|
|
1220
1227
|
*/
|
|
1221
1228
|
importStl(data: Uint8Array | number[]): number;
|
|
1222
1229
|
/**
|
|
@@ -1999,7 +2006,8 @@ export class BrepKernel {
|
|
|
1999
2006
|
* Revolve an open wire around an axis into an open shell.
|
|
2000
2007
|
*
|
|
2001
2008
|
* The axis is defined by an origin point `(ox, oy, oz)` and a direction
|
|
2002
|
-
* `(dx, dy, dz)`. The angle is in degrees
|
|
2009
|
+
* `(dx, dy, dz)`. The angle is in degrees, in (0, 360]; an angle in
|
|
2010
|
+
* [-360, 0) turns the other way.
|
|
2003
2011
|
*
|
|
2004
2012
|
* Returns a shell handle (`u32`).
|
|
2005
2013
|
*
|
|
@@ -2014,7 +2022,8 @@ export class BrepKernel {
|
|
|
2014
2022
|
* Revolve a planar face around an axis to create a solid of revolution.
|
|
2015
2023
|
*
|
|
2016
2024
|
* The axis is defined by an origin point `(ox, oy, oz)` and a direction
|
|
2017
|
-
* `(dx, dy, dz)`. The angle is in degrees
|
|
2025
|
+
* `(dx, dy, dz)`. The angle is in degrees, in (0, 360]; an angle in
|
|
2026
|
+
* [-360, 0) turns the other way.
|
|
2018
2027
|
*
|
|
2019
2028
|
* Returns a solid handle (`u32`).
|
|
2020
2029
|
*
|
package/brepkit_wasm_bg.js
CHANGED
|
@@ -448,8 +448,10 @@ export class BrepKernel {
|
|
|
448
448
|
* Returns a checkpoint ID (zero-based index) that can be passed to
|
|
449
449
|
* `restore` or `discardCheckpoint`.
|
|
450
450
|
*
|
|
451
|
-
* The
|
|
452
|
-
*
|
|
451
|
+
* The topology records each change after the checkpoint, so a restore
|
|
452
|
+
* costs the changes and not the size of the topology. The assembly and
|
|
453
|
+
* sketch state is copied. Existing entity handles remain valid after
|
|
454
|
+
* restore.
|
|
453
455
|
* @returns {number}
|
|
454
456
|
*/
|
|
455
457
|
checkpoint() {
|
|
@@ -2706,9 +2708,10 @@ export class BrepKernel {
|
|
|
2706
2708
|
*
|
|
2707
2709
|
* # Errors
|
|
2708
2710
|
*
|
|
2709
|
-
* Returns an error if the arrays are malformed,
|
|
2710
|
-
* does not close, or a body lies in
|
|
2711
|
-
* `importIndexedMeshParts` returns each part
|
|
2711
|
+
* Returns an error if the arrays are malformed, two closed bodies of
|
|
2712
|
+
* the mesh cross, a part of the mesh does not close, or a body lies in
|
|
2713
|
+
* the material of another. `importIndexedMeshParts` returns each part
|
|
2714
|
+
* of such a mesh.
|
|
2712
2715
|
* @param {Float64Array | number[]} positions
|
|
2713
2716
|
* @param {Uint32Array | number[]} indices
|
|
2714
2717
|
* @returns {number}
|
|
@@ -2807,7 +2810,9 @@ export class BrepKernel {
|
|
|
2807
2810
|
*
|
|
2808
2811
|
* Returns a JSON string `{ solids: number[], shells: number[] }`. A
|
|
2809
2812
|
* closed body is a solid, with each inward closed body in it as a
|
|
2810
|
-
* cavity.
|
|
2813
|
+
* cavity. Two closed bodies that share an edge are two solids. A body
|
|
2814
|
+
* that does not close, and an inward closed body that crosses another
|
|
2815
|
+
* body, is a shell.
|
|
2811
2816
|
*
|
|
2812
2817
|
* # Errors
|
|
2813
2818
|
*
|
|
@@ -2844,9 +2849,10 @@ export class BrepKernel {
|
|
|
2844
2849
|
*
|
|
2845
2850
|
* # Errors
|
|
2846
2851
|
*
|
|
2847
|
-
* Returns an error if the STL data is malformed or empty,
|
|
2848
|
-
* the mesh does not close, or a
|
|
2849
|
-
*
|
|
2852
|
+
* Returns an error if the STL data is malformed or empty, two closed
|
|
2853
|
+
* bodies of the mesh cross, a part of the mesh does not close, or a
|
|
2854
|
+
* body lies in the material of another. `importStlParts` returns each
|
|
2855
|
+
* part of such a mesh.
|
|
2850
2856
|
* @param {Uint8Array | number[]} data
|
|
2851
2857
|
* @returns {number}
|
|
2852
2858
|
*/
|
|
@@ -4676,7 +4682,8 @@ export class BrepKernel {
|
|
|
4676
4682
|
* Revolve an open wire around an axis into an open shell.
|
|
4677
4683
|
*
|
|
4678
4684
|
* The axis is defined by an origin point `(ox, oy, oz)` and a direction
|
|
4679
|
-
* `(dx, dy, dz)`. The angle is in degrees
|
|
4685
|
+
* `(dx, dy, dz)`. The angle is in degrees, in (0, 360]; an angle in
|
|
4686
|
+
* [-360, 0) turns the other way.
|
|
4680
4687
|
*
|
|
4681
4688
|
* Returns a shell handle (`u32`).
|
|
4682
4689
|
*
|
|
@@ -4706,7 +4713,8 @@ export class BrepKernel {
|
|
|
4706
4713
|
* Revolve a planar face around an axis to create a solid of revolution.
|
|
4707
4714
|
*
|
|
4708
4715
|
* The axis is defined by an origin point `(ox, oy, oz)` and a direction
|
|
4709
|
-
* `(dx, dy, dz)`. The angle is in degrees
|
|
4716
|
+
* `(dx, dy, dz)`. The angle is in degrees, in (0, 360]; an angle in
|
|
4717
|
+
* [-360, 0) turns the other way.
|
|
4710
4718
|
*
|
|
4711
4719
|
* Returns a solid handle (`u32`).
|
|
4712
4720
|
*
|
|
@@ -6113,16 +6121,16 @@ export function __wbg___wbindgen_debug_string_f249a2a76caa9a55(arg0, arg1) {
|
|
|
6113
6121
|
export function __wbg___wbindgen_throw_4c88d8bf264fd984(arg0, arg1) {
|
|
6114
6122
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
6115
6123
|
}
|
|
6116
|
-
export function
|
|
6124
|
+
export function __wbg_error_52a743ead3187dba(arg0, arg1) {
|
|
6117
6125
|
console.error(getStringFromWasm0(arg0, arg1));
|
|
6118
6126
|
}
|
|
6119
6127
|
export function __wbg_getRandomValues_8b6f1f663e6f188d() { return handleError(function (arg0, arg1) {
|
|
6120
6128
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
6121
6129
|
}, arguments); }
|
|
6122
|
-
export function
|
|
6130
|
+
export function __wbg_log_8daba8869ae3b9cc(arg0, arg1) {
|
|
6123
6131
|
console.log(getStringFromWasm0(arg0, arg1));
|
|
6124
6132
|
}
|
|
6125
|
-
export function
|
|
6133
|
+
export function __wbg_warn_27cb8b6a24cc57e6(arg0, arg1) {
|
|
6126
6134
|
console.warn(getStringFromWasm0(arg0, arg1));
|
|
6127
6135
|
}
|
|
6128
6136
|
export function __wbindgen_generic_0000000000000001(arg0, arg1) {
|
package/brepkit_wasm_bg.wasm
CHANGED
|
Binary file
|
package/brepkit_wasm_node.cjs
CHANGED
|
@@ -450,8 +450,10 @@ class BrepKernel {
|
|
|
450
450
|
* Returns a checkpoint ID (zero-based index) that can be passed to
|
|
451
451
|
* `restore` or `discardCheckpoint`.
|
|
452
452
|
*
|
|
453
|
-
* The
|
|
454
|
-
*
|
|
453
|
+
* The topology records each change after the checkpoint, so a restore
|
|
454
|
+
* costs the changes and not the size of the topology. The assembly and
|
|
455
|
+
* sketch state is copied. Existing entity handles remain valid after
|
|
456
|
+
* restore.
|
|
455
457
|
* @returns {number}
|
|
456
458
|
*/
|
|
457
459
|
checkpoint() {
|
|
@@ -2708,9 +2710,10 @@ class BrepKernel {
|
|
|
2708
2710
|
*
|
|
2709
2711
|
* # Errors
|
|
2710
2712
|
*
|
|
2711
|
-
* Returns an error if the arrays are malformed,
|
|
2712
|
-
* does not close, or a body lies in
|
|
2713
|
-
* `importIndexedMeshParts` returns each part
|
|
2713
|
+
* Returns an error if the arrays are malformed, two closed bodies of
|
|
2714
|
+
* the mesh cross, a part of the mesh does not close, or a body lies in
|
|
2715
|
+
* the material of another. `importIndexedMeshParts` returns each part
|
|
2716
|
+
* of such a mesh.
|
|
2714
2717
|
* @param {Float64Array | number[]} positions
|
|
2715
2718
|
* @param {Uint32Array | number[]} indices
|
|
2716
2719
|
* @returns {number}
|
|
@@ -2809,7 +2812,9 @@ class BrepKernel {
|
|
|
2809
2812
|
*
|
|
2810
2813
|
* Returns a JSON string `{ solids: number[], shells: number[] }`. A
|
|
2811
2814
|
* closed body is a solid, with each inward closed body in it as a
|
|
2812
|
-
* cavity.
|
|
2815
|
+
* cavity. Two closed bodies that share an edge are two solids. A body
|
|
2816
|
+
* that does not close, and an inward closed body that crosses another
|
|
2817
|
+
* body, is a shell.
|
|
2813
2818
|
*
|
|
2814
2819
|
* # Errors
|
|
2815
2820
|
*
|
|
@@ -2846,9 +2851,10 @@ class BrepKernel {
|
|
|
2846
2851
|
*
|
|
2847
2852
|
* # Errors
|
|
2848
2853
|
*
|
|
2849
|
-
* Returns an error if the STL data is malformed or empty,
|
|
2850
|
-
* the mesh does not close, or a
|
|
2851
|
-
*
|
|
2854
|
+
* Returns an error if the STL data is malformed or empty, two closed
|
|
2855
|
+
* bodies of the mesh cross, a part of the mesh does not close, or a
|
|
2856
|
+
* body lies in the material of another. `importStlParts` returns each
|
|
2857
|
+
* part of such a mesh.
|
|
2852
2858
|
* @param {Uint8Array | number[]} data
|
|
2853
2859
|
* @returns {number}
|
|
2854
2860
|
*/
|
|
@@ -4678,7 +4684,8 @@ class BrepKernel {
|
|
|
4678
4684
|
* Revolve an open wire around an axis into an open shell.
|
|
4679
4685
|
*
|
|
4680
4686
|
* The axis is defined by an origin point `(ox, oy, oz)` and a direction
|
|
4681
|
-
* `(dx, dy, dz)`. The angle is in degrees
|
|
4687
|
+
* `(dx, dy, dz)`. The angle is in degrees, in (0, 360]; an angle in
|
|
4688
|
+
* [-360, 0) turns the other way.
|
|
4682
4689
|
*
|
|
4683
4690
|
* Returns a shell handle (`u32`).
|
|
4684
4691
|
*
|
|
@@ -4708,7 +4715,8 @@ class BrepKernel {
|
|
|
4708
4715
|
* Revolve a planar face around an axis to create a solid of revolution.
|
|
4709
4716
|
*
|
|
4710
4717
|
* The axis is defined by an origin point `(ox, oy, oz)` and a direction
|
|
4711
|
-
* `(dx, dy, dz)`. The angle is in degrees
|
|
4718
|
+
* `(dx, dy, dz)`. The angle is in degrees, in (0, 360]; an angle in
|
|
4719
|
+
* [-360, 0) turns the other way.
|
|
4712
4720
|
*
|
|
4713
4721
|
* Returns a solid handle (`u32`).
|
|
4714
4722
|
*
|
|
@@ -6127,16 +6135,16 @@ function __wbg_get_imports() {
|
|
|
6127
6135
|
__wbg___wbindgen_throw_4c88d8bf264fd984: function(arg0, arg1) {
|
|
6128
6136
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
6129
6137
|
},
|
|
6130
|
-
|
|
6138
|
+
__wbg_error_52a743ead3187dba: function(arg0, arg1) {
|
|
6131
6139
|
console.error(getStringFromWasm0(arg0, arg1));
|
|
6132
6140
|
},
|
|
6133
6141
|
__wbg_getRandomValues_8b6f1f663e6f188d: function() { return handleError(function (arg0, arg1) {
|
|
6134
6142
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
6135
6143
|
}, arguments); },
|
|
6136
|
-
|
|
6144
|
+
__wbg_log_8daba8869ae3b9cc: function(arg0, arg1) {
|
|
6137
6145
|
console.log(getStringFromWasm0(arg0, arg1));
|
|
6138
6146
|
},
|
|
6139
|
-
|
|
6147
|
+
__wbg_warn_27cb8b6a24cc57e6: function(arg0, arg1) {
|
|
6140
6148
|
console.warn(getStringFromWasm0(arg0, arg1));
|
|
6141
6149
|
},
|
|
6142
6150
|
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
package/package.json
CHANGED