brepkit-wasm 4.6.27 → 4.6.30
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 +13 -0
- package/brepkit_wasm_bg.js +28 -3
- package/brepkit_wasm_bg.wasm +0 -0
- package/brepkit_wasm_node.cjs +28 -3
- package/package.json +1 -1
package/brepkit_wasm.d.ts
CHANGED
|
@@ -506,6 +506,19 @@ export class BrepKernel {
|
|
|
506
506
|
* Returns an error if the solid handle is invalid or tessellation fails.
|
|
507
507
|
*/
|
|
508
508
|
exportGlb(solid: number, deflection: number): Uint8Array;
|
|
509
|
+
/**
|
|
510
|
+
* Export several solids to one IGES document, each of its faces a trimmed
|
|
511
|
+
* surface that refers to its other entities by number, so documents written
|
|
512
|
+
* one solid at a time cannot simply be joined. A handle given twice is
|
|
513
|
+
* written once.
|
|
514
|
+
*
|
|
515
|
+
* Returns the IGES file as a UTF-8 encoded byte vector.
|
|
516
|
+
*
|
|
517
|
+
* # Errors
|
|
518
|
+
*
|
|
519
|
+
* Returns an error if a solid handle is invalid or export fails.
|
|
520
|
+
*/
|
|
521
|
+
exportIgesSolids(solids: Uint32Array): Uint8Array;
|
|
509
522
|
/**
|
|
510
523
|
* Export a solid to IGES format.
|
|
511
524
|
*
|
package/brepkit_wasm_bg.js
CHANGED
|
@@ -1151,6 +1151,31 @@ export class BrepKernel {
|
|
|
1151
1151
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1152
1152
|
return v1;
|
|
1153
1153
|
}
|
|
1154
|
+
/**
|
|
1155
|
+
* Export several solids to one IGES document, each of its faces a trimmed
|
|
1156
|
+
* surface that refers to its other entities by number, so documents written
|
|
1157
|
+
* one solid at a time cannot simply be joined. A handle given twice is
|
|
1158
|
+
* written once.
|
|
1159
|
+
*
|
|
1160
|
+
* Returns the IGES file as a UTF-8 encoded byte vector.
|
|
1161
|
+
*
|
|
1162
|
+
* # Errors
|
|
1163
|
+
*
|
|
1164
|
+
* Returns an error if a solid handle is invalid or export fails.
|
|
1165
|
+
* @param {Uint32Array} solids
|
|
1166
|
+
* @returns {Uint8Array}
|
|
1167
|
+
*/
|
|
1168
|
+
exportIgesSolids(solids) {
|
|
1169
|
+
const ptr0 = passArray32ToWasm0(solids, wasm.__wbindgen_malloc);
|
|
1170
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1171
|
+
const ret = wasm.brepkernel_exportIgesSolids(this.__wbg_ptr, ptr0, len0);
|
|
1172
|
+
if (ret[3]) {
|
|
1173
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
1174
|
+
}
|
|
1175
|
+
var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
1176
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1177
|
+
return v2;
|
|
1178
|
+
}
|
|
1154
1179
|
/**
|
|
1155
1180
|
* Export a solid to IGES format.
|
|
1156
1181
|
*
|
|
@@ -5352,16 +5377,16 @@ export function __wbg___wbindgen_debug_string_4687d8d8c2017d52(arg0, arg1) {
|
|
|
5352
5377
|
export function __wbg___wbindgen_throw_41e9ee4f547fc59a(arg0, arg1) {
|
|
5353
5378
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
5354
5379
|
}
|
|
5355
|
-
export function
|
|
5380
|
+
export function __wbg_error_2bb24ecdc4be6079(arg0, arg1) {
|
|
5356
5381
|
console.error(getStringFromWasm0(arg0, arg1));
|
|
5357
5382
|
}
|
|
5358
5383
|
export function __wbg_getRandomValues_436a51d0629d84e1() { return handleError(function (arg0, arg1) {
|
|
5359
5384
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
5360
5385
|
}, arguments); }
|
|
5361
|
-
export function
|
|
5386
|
+
export function __wbg_log_83fd8f58be00b574(arg0, arg1) {
|
|
5362
5387
|
console.log(getStringFromWasm0(arg0, arg1));
|
|
5363
5388
|
}
|
|
5364
|
-
export function
|
|
5389
|
+
export function __wbg_warn_591c200c581c22fb(arg0, arg1) {
|
|
5365
5390
|
console.warn(getStringFromWasm0(arg0, arg1));
|
|
5366
5391
|
}
|
|
5367
5392
|
export function __wbindgen_generic_0000000000000001(arg0, arg1) {
|
package/brepkit_wasm_bg.wasm
CHANGED
|
Binary file
|
package/brepkit_wasm_node.cjs
CHANGED
|
@@ -1153,6 +1153,31 @@ class BrepKernel {
|
|
|
1153
1153
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1154
1154
|
return v1;
|
|
1155
1155
|
}
|
|
1156
|
+
/**
|
|
1157
|
+
* Export several solids to one IGES document, each of its faces a trimmed
|
|
1158
|
+
* surface that refers to its other entities by number, so documents written
|
|
1159
|
+
* one solid at a time cannot simply be joined. A handle given twice is
|
|
1160
|
+
* written once.
|
|
1161
|
+
*
|
|
1162
|
+
* Returns the IGES file as a UTF-8 encoded byte vector.
|
|
1163
|
+
*
|
|
1164
|
+
* # Errors
|
|
1165
|
+
*
|
|
1166
|
+
* Returns an error if a solid handle is invalid or export fails.
|
|
1167
|
+
* @param {Uint32Array} solids
|
|
1168
|
+
* @returns {Uint8Array}
|
|
1169
|
+
*/
|
|
1170
|
+
exportIgesSolids(solids) {
|
|
1171
|
+
const ptr0 = passArray32ToWasm0(solids, wasm.__wbindgen_malloc);
|
|
1172
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1173
|
+
const ret = wasm.brepkernel_exportIgesSolids(this.__wbg_ptr, ptr0, len0);
|
|
1174
|
+
if (ret[3]) {
|
|
1175
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
1176
|
+
}
|
|
1177
|
+
var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
1178
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1179
|
+
return v2;
|
|
1180
|
+
}
|
|
1156
1181
|
/**
|
|
1157
1182
|
* Export a solid to IGES format.
|
|
1158
1183
|
*
|
|
@@ -5366,16 +5391,16 @@ function __wbg_get_imports() {
|
|
|
5366
5391
|
__wbg___wbindgen_throw_41e9ee4f547fc59a: function(arg0, arg1) {
|
|
5367
5392
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
5368
5393
|
},
|
|
5369
|
-
|
|
5394
|
+
__wbg_error_2bb24ecdc4be6079: function(arg0, arg1) {
|
|
5370
5395
|
console.error(getStringFromWasm0(arg0, arg1));
|
|
5371
5396
|
},
|
|
5372
5397
|
__wbg_getRandomValues_436a51d0629d84e1: function() { return handleError(function (arg0, arg1) {
|
|
5373
5398
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
5374
5399
|
}, arguments); },
|
|
5375
|
-
|
|
5400
|
+
__wbg_log_83fd8f58be00b574: function(arg0, arg1) {
|
|
5376
5401
|
console.log(getStringFromWasm0(arg0, arg1));
|
|
5377
5402
|
},
|
|
5378
|
-
|
|
5403
|
+
__wbg_warn_591c200c581c22fb: function(arg0, arg1) {
|
|
5379
5404
|
console.warn(getStringFromWasm0(arg0, arg1));
|
|
5380
5405
|
},
|
|
5381
5406
|
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
package/package.json
CHANGED