brepkit-wasm 2.104.2 → 2.105.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 +46 -0
- package/brepkit_wasm.js +1 -1
- package/brepkit_wasm_bg.js +113 -3
- package/brepkit_wasm_bg.wasm +0 -0
- package/brepkit_wasm_node.cjs +114 -3
- package/package.json +1 -1
package/brepkit_wasm.d.ts
CHANGED
|
@@ -1862,6 +1862,20 @@ export class BrepKernel {
|
|
|
1862
1862
|
* regardless of how the solid was constructed (booleans included).
|
|
1863
1863
|
*/
|
|
1864
1864
|
tessellateSolidGrouped(solid: number, deflection: number, angular_tolerance?: number | null): any;
|
|
1865
|
+
/**
|
|
1866
|
+
* Tessellate a solid with per-face grouping, returned as packed binary
|
|
1867
|
+
* buffers ([`JsGroupedMesh`]) instead of a JSON string.
|
|
1868
|
+
*
|
|
1869
|
+
* Identical geometry to [`tessellate_solid_grouped`](Self::tessellate_solid_grouped),
|
|
1870
|
+
* but the mesh crosses the WASM boundary as `Float32Array`/`Uint32Array`
|
|
1871
|
+
* bulk copies rather than a (potentially multi-megabyte) JSON string that
|
|
1872
|
+
* the caller must `JSON.parse` and re-pack — far cheaper for large meshes.
|
|
1873
|
+
*
|
|
1874
|
+
* # Errors
|
|
1875
|
+
*
|
|
1876
|
+
* Returns an error if the solid handle is invalid or tessellation fails.
|
|
1877
|
+
*/
|
|
1878
|
+
tessellateSolidGroupedBinary(solid: number, deflection: number, angular_tolerance?: number | null): JsGroupedMesh;
|
|
1865
1879
|
/**
|
|
1866
1880
|
* Tessellate a solid and include per-vertex UV coordinates.
|
|
1867
1881
|
*
|
|
@@ -2049,6 +2063,38 @@ export class JsEdgeLines {
|
|
|
2049
2063
|
readonly positions: Float64Array;
|
|
2050
2064
|
}
|
|
2051
2065
|
|
|
2066
|
+
/**
|
|
2067
|
+
* A triangle mesh with per-face triangle grouping, exposed to JavaScript.
|
|
2068
|
+
*
|
|
2069
|
+
* The binary counterpart to the JSON `tessellateSolidGrouped`: positions and
|
|
2070
|
+
* normals are packed `Float32Array`s and indices/`faceOffsets` are
|
|
2071
|
+
* `Uint32Array`s, so the whole mesh crosses the WASM boundary as bulk memory
|
|
2072
|
+
* copies instead of a JSON string round-trip. `f32` matches what mesh
|
|
2073
|
+
* consumers (GPU vertex buffers) use, halving the transfer versus `f64`.
|
|
2074
|
+
*/
|
|
2075
|
+
export class JsGroupedMesh {
|
|
2076
|
+
private constructor();
|
|
2077
|
+
free(): void;
|
|
2078
|
+
[Symbol.dispose](): void;
|
|
2079
|
+
/**
|
|
2080
|
+
* Per-face start offsets into `indices`: `faceOffsets[i]` is the start of
|
|
2081
|
+
* face `i`, and the final element equals `indices.length`.
|
|
2082
|
+
*/
|
|
2083
|
+
readonly faceOffsets: Uint32Array;
|
|
2084
|
+
/**
|
|
2085
|
+
* Triangle indices (groups of 3).
|
|
2086
|
+
*/
|
|
2087
|
+
readonly indices: Uint32Array;
|
|
2088
|
+
/**
|
|
2089
|
+
* Flattened per-vertex normals as `[nx, ny, nz, ...]`.
|
|
2090
|
+
*/
|
|
2091
|
+
readonly normals: Float32Array;
|
|
2092
|
+
/**
|
|
2093
|
+
* Flattened vertex positions as `[x, y, z, ...]`.
|
|
2094
|
+
*/
|
|
2095
|
+
readonly positions: Float32Array;
|
|
2096
|
+
}
|
|
2097
|
+
|
|
2052
2098
|
/**
|
|
2053
2099
|
* A triangle mesh exposed to JavaScript.
|
|
2054
2100
|
*
|
package/brepkit_wasm.js
CHANGED
|
@@ -5,5 +5,5 @@ import { __wbg_set_wasm } from "./brepkit_wasm_bg.js";
|
|
|
5
5
|
__wbg_set_wasm(wasm);
|
|
6
6
|
wasm.__wbindgen_start();
|
|
7
7
|
export {
|
|
8
|
-
BrepKernel, JsEdgeLines, JsMesh, JsPoint3, JsVec3, setLogLevel
|
|
8
|
+
BrepKernel, JsEdgeLines, JsGroupedMesh, JsMesh, JsPoint3, JsVec3, setLogLevel
|
|
9
9
|
} from "./brepkit_wasm_bg.js";
|
package/brepkit_wasm_bg.js
CHANGED
|
@@ -4163,6 +4163,30 @@ export class BrepKernel {
|
|
|
4163
4163
|
}
|
|
4164
4164
|
return takeFromExternrefTable0(ret[0]);
|
|
4165
4165
|
}
|
|
4166
|
+
/**
|
|
4167
|
+
* Tessellate a solid with per-face grouping, returned as packed binary
|
|
4168
|
+
* buffers ([`JsGroupedMesh`]) instead of a JSON string.
|
|
4169
|
+
*
|
|
4170
|
+
* Identical geometry to [`tessellate_solid_grouped`](Self::tessellate_solid_grouped),
|
|
4171
|
+
* but the mesh crosses the WASM boundary as `Float32Array`/`Uint32Array`
|
|
4172
|
+
* bulk copies rather than a (potentially multi-megabyte) JSON string that
|
|
4173
|
+
* the caller must `JSON.parse` and re-pack — far cheaper for large meshes.
|
|
4174
|
+
*
|
|
4175
|
+
* # Errors
|
|
4176
|
+
*
|
|
4177
|
+
* Returns an error if the solid handle is invalid or tessellation fails.
|
|
4178
|
+
* @param {number} solid
|
|
4179
|
+
* @param {number} deflection
|
|
4180
|
+
* @param {number | null} [angular_tolerance]
|
|
4181
|
+
* @returns {JsGroupedMesh}
|
|
4182
|
+
*/
|
|
4183
|
+
tessellateSolidGroupedBinary(solid, deflection, angular_tolerance) {
|
|
4184
|
+
const ret = wasm.brepkernel_tessellateSolidGroupedBinary(this.__wbg_ptr, solid, deflection, !isLikeNone(angular_tolerance), isLikeNone(angular_tolerance) ? 0 : angular_tolerance);
|
|
4185
|
+
if (ret[2]) {
|
|
4186
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
4187
|
+
}
|
|
4188
|
+
return JsGroupedMesh.__wrap(ret[0]);
|
|
4189
|
+
}
|
|
4166
4190
|
/**
|
|
4167
4191
|
* Tessellate a solid and include per-vertex UV coordinates.
|
|
4168
4192
|
*
|
|
@@ -4520,6 +4544,76 @@ export class JsEdgeLines {
|
|
|
4520
4544
|
}
|
|
4521
4545
|
if (Symbol.dispose) JsEdgeLines.prototype[Symbol.dispose] = JsEdgeLines.prototype.free;
|
|
4522
4546
|
|
|
4547
|
+
/**
|
|
4548
|
+
* A triangle mesh with per-face triangle grouping, exposed to JavaScript.
|
|
4549
|
+
*
|
|
4550
|
+
* The binary counterpart to the JSON `tessellateSolidGrouped`: positions and
|
|
4551
|
+
* normals are packed `Float32Array`s and indices/`faceOffsets` are
|
|
4552
|
+
* `Uint32Array`s, so the whole mesh crosses the WASM boundary as bulk memory
|
|
4553
|
+
* copies instead of a JSON string round-trip. `f32` matches what mesh
|
|
4554
|
+
* consumers (GPU vertex buffers) use, halving the transfer versus `f64`.
|
|
4555
|
+
*/
|
|
4556
|
+
export class JsGroupedMesh {
|
|
4557
|
+
static __wrap(ptr) {
|
|
4558
|
+
const obj = Object.create(JsGroupedMesh.prototype);
|
|
4559
|
+
obj.__wbg_ptr = ptr;
|
|
4560
|
+
JsGroupedMeshFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
4561
|
+
return obj;
|
|
4562
|
+
}
|
|
4563
|
+
__destroy_into_raw() {
|
|
4564
|
+
const ptr = this.__wbg_ptr;
|
|
4565
|
+
this.__wbg_ptr = 0;
|
|
4566
|
+
JsGroupedMeshFinalization.unregister(this);
|
|
4567
|
+
return ptr;
|
|
4568
|
+
}
|
|
4569
|
+
free() {
|
|
4570
|
+
const ptr = this.__destroy_into_raw();
|
|
4571
|
+
wasm.__wbg_jsgroupedmesh_free(ptr, 0);
|
|
4572
|
+
}
|
|
4573
|
+
/**
|
|
4574
|
+
* Per-face start offsets into `indices`: `faceOffsets[i]` is the start of
|
|
4575
|
+
* face `i`, and the final element equals `indices.length`.
|
|
4576
|
+
* @returns {Uint32Array}
|
|
4577
|
+
*/
|
|
4578
|
+
get faceOffsets() {
|
|
4579
|
+
const ret = wasm.jsgroupedmesh_faceOffsets(this.__wbg_ptr);
|
|
4580
|
+
var v1 = getArrayU32FromWasm0(ret[0], ret[1]).slice();
|
|
4581
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
4582
|
+
return v1;
|
|
4583
|
+
}
|
|
4584
|
+
/**
|
|
4585
|
+
* Triangle indices (groups of 3).
|
|
4586
|
+
* @returns {Uint32Array}
|
|
4587
|
+
*/
|
|
4588
|
+
get indices() {
|
|
4589
|
+
const ret = wasm.jsgroupedmesh_indices(this.__wbg_ptr);
|
|
4590
|
+
var v1 = getArrayU32FromWasm0(ret[0], ret[1]).slice();
|
|
4591
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
4592
|
+
return v1;
|
|
4593
|
+
}
|
|
4594
|
+
/**
|
|
4595
|
+
* Flattened per-vertex normals as `[nx, ny, nz, ...]`.
|
|
4596
|
+
* @returns {Float32Array}
|
|
4597
|
+
*/
|
|
4598
|
+
get normals() {
|
|
4599
|
+
const ret = wasm.jsgroupedmesh_normals(this.__wbg_ptr);
|
|
4600
|
+
var v1 = getArrayF32FromWasm0(ret[0], ret[1]).slice();
|
|
4601
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
4602
|
+
return v1;
|
|
4603
|
+
}
|
|
4604
|
+
/**
|
|
4605
|
+
* Flattened vertex positions as `[x, y, z, ...]`.
|
|
4606
|
+
* @returns {Float32Array}
|
|
4607
|
+
*/
|
|
4608
|
+
get positions() {
|
|
4609
|
+
const ret = wasm.jsgroupedmesh_positions(this.__wbg_ptr);
|
|
4610
|
+
var v1 = getArrayF32FromWasm0(ret[0], ret[1]).slice();
|
|
4611
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
4612
|
+
return v1;
|
|
4613
|
+
}
|
|
4614
|
+
}
|
|
4615
|
+
if (Symbol.dispose) JsGroupedMesh.prototype[Symbol.dispose] = JsGroupedMesh.prototype.free;
|
|
4616
|
+
|
|
4523
4617
|
/**
|
|
4524
4618
|
* A triangle mesh exposed to JavaScript.
|
|
4525
4619
|
*
|
|
@@ -4804,13 +4898,13 @@ export function __wbg___wbindgen_debug_string_0accd80f45e5faa2(arg0, arg1) {
|
|
|
4804
4898
|
export function __wbg___wbindgen_throw_1506f2235d1bdba0(arg0, arg1) {
|
|
4805
4899
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
4806
4900
|
}
|
|
4807
|
-
export function
|
|
4901
|
+
export function __wbg_error_85e019924b3d51f5(arg0, arg1) {
|
|
4808
4902
|
console.error(getStringFromWasm0(arg0, arg1));
|
|
4809
4903
|
}
|
|
4810
|
-
export function
|
|
4904
|
+
export function __wbg_log_40a70746064f897c(arg0, arg1) {
|
|
4811
4905
|
console.log(getStringFromWasm0(arg0, arg1));
|
|
4812
4906
|
}
|
|
4813
|
-
export function
|
|
4907
|
+
export function __wbg_warn_0f2eb98c4119d263(arg0, arg1) {
|
|
4814
4908
|
console.warn(getStringFromWasm0(arg0, arg1));
|
|
4815
4909
|
}
|
|
4816
4910
|
export function __wbindgen_cast_0000000000000001(arg0, arg1) {
|
|
@@ -4833,6 +4927,9 @@ const BrepKernelFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
4833
4927
|
const JsEdgeLinesFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4834
4928
|
? { register: () => {}, unregister: () => {} }
|
|
4835
4929
|
: new FinalizationRegistry(ptr => wasm.__wbg_jsedgelines_free(ptr, 1));
|
|
4930
|
+
const JsGroupedMeshFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4931
|
+
? { register: () => {}, unregister: () => {} }
|
|
4932
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_jsgroupedmesh_free(ptr, 1));
|
|
4836
4933
|
const JsMeshFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4837
4934
|
? { register: () => {}, unregister: () => {} }
|
|
4838
4935
|
: new FinalizationRegistry(ptr => wasm.__wbg_jsmesh_free(ptr, 1));
|
|
@@ -4908,6 +5005,11 @@ function debugString(val) {
|
|
|
4908
5005
|
return className;
|
|
4909
5006
|
}
|
|
4910
5007
|
|
|
5008
|
+
function getArrayF32FromWasm0(ptr, len) {
|
|
5009
|
+
ptr = ptr >>> 0;
|
|
5010
|
+
return getFloat32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
5011
|
+
}
|
|
5012
|
+
|
|
4911
5013
|
function getArrayF64FromWasm0(ptr, len) {
|
|
4912
5014
|
ptr = ptr >>> 0;
|
|
4913
5015
|
return getFloat64ArrayMemory0().subarray(ptr / 8, ptr / 8 + len);
|
|
@@ -4931,6 +5033,14 @@ function getDataViewMemory0() {
|
|
|
4931
5033
|
return cachedDataViewMemory0;
|
|
4932
5034
|
}
|
|
4933
5035
|
|
|
5036
|
+
let cachedFloat32ArrayMemory0 = null;
|
|
5037
|
+
function getFloat32ArrayMemory0() {
|
|
5038
|
+
if (cachedFloat32ArrayMemory0 === null || cachedFloat32ArrayMemory0.byteLength === 0) {
|
|
5039
|
+
cachedFloat32ArrayMemory0 = new Float32Array(wasm.memory.buffer);
|
|
5040
|
+
}
|
|
5041
|
+
return cachedFloat32ArrayMemory0;
|
|
5042
|
+
}
|
|
5043
|
+
|
|
4934
5044
|
let cachedFloat64ArrayMemory0 = null;
|
|
4935
5045
|
function getFloat64ArrayMemory0() {
|
|
4936
5046
|
if (cachedFloat64ArrayMemory0 === null || cachedFloat64ArrayMemory0.byteLength === 0) {
|
package/brepkit_wasm_bg.wasm
CHANGED
|
Binary file
|
package/brepkit_wasm_node.cjs
CHANGED
|
@@ -4165,6 +4165,30 @@ class BrepKernel {
|
|
|
4165
4165
|
}
|
|
4166
4166
|
return takeFromExternrefTable0(ret[0]);
|
|
4167
4167
|
}
|
|
4168
|
+
/**
|
|
4169
|
+
* Tessellate a solid with per-face grouping, returned as packed binary
|
|
4170
|
+
* buffers ([`JsGroupedMesh`]) instead of a JSON string.
|
|
4171
|
+
*
|
|
4172
|
+
* Identical geometry to [`tessellate_solid_grouped`](Self::tessellate_solid_grouped),
|
|
4173
|
+
* but the mesh crosses the WASM boundary as `Float32Array`/`Uint32Array`
|
|
4174
|
+
* bulk copies rather than a (potentially multi-megabyte) JSON string that
|
|
4175
|
+
* the caller must `JSON.parse` and re-pack — far cheaper for large meshes.
|
|
4176
|
+
*
|
|
4177
|
+
* # Errors
|
|
4178
|
+
*
|
|
4179
|
+
* Returns an error if the solid handle is invalid or tessellation fails.
|
|
4180
|
+
* @param {number} solid
|
|
4181
|
+
* @param {number} deflection
|
|
4182
|
+
* @param {number | null} [angular_tolerance]
|
|
4183
|
+
* @returns {JsGroupedMesh}
|
|
4184
|
+
*/
|
|
4185
|
+
tessellateSolidGroupedBinary(solid, deflection, angular_tolerance) {
|
|
4186
|
+
const ret = wasm.brepkernel_tessellateSolidGroupedBinary(this.__wbg_ptr, solid, deflection, !isLikeNone(angular_tolerance), isLikeNone(angular_tolerance) ? 0 : angular_tolerance);
|
|
4187
|
+
if (ret[2]) {
|
|
4188
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
4189
|
+
}
|
|
4190
|
+
return JsGroupedMesh.__wrap(ret[0]);
|
|
4191
|
+
}
|
|
4168
4192
|
/**
|
|
4169
4193
|
* Tessellate a solid and include per-vertex UV coordinates.
|
|
4170
4194
|
*
|
|
@@ -4524,6 +4548,77 @@ class JsEdgeLines {
|
|
|
4524
4548
|
if (Symbol.dispose) JsEdgeLines.prototype[Symbol.dispose] = JsEdgeLines.prototype.free;
|
|
4525
4549
|
exports.JsEdgeLines = JsEdgeLines;
|
|
4526
4550
|
|
|
4551
|
+
/**
|
|
4552
|
+
* A triangle mesh with per-face triangle grouping, exposed to JavaScript.
|
|
4553
|
+
*
|
|
4554
|
+
* The binary counterpart to the JSON `tessellateSolidGrouped`: positions and
|
|
4555
|
+
* normals are packed `Float32Array`s and indices/`faceOffsets` are
|
|
4556
|
+
* `Uint32Array`s, so the whole mesh crosses the WASM boundary as bulk memory
|
|
4557
|
+
* copies instead of a JSON string round-trip. `f32` matches what mesh
|
|
4558
|
+
* consumers (GPU vertex buffers) use, halving the transfer versus `f64`.
|
|
4559
|
+
*/
|
|
4560
|
+
class JsGroupedMesh {
|
|
4561
|
+
static __wrap(ptr) {
|
|
4562
|
+
const obj = Object.create(JsGroupedMesh.prototype);
|
|
4563
|
+
obj.__wbg_ptr = ptr;
|
|
4564
|
+
JsGroupedMeshFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
4565
|
+
return obj;
|
|
4566
|
+
}
|
|
4567
|
+
__destroy_into_raw() {
|
|
4568
|
+
const ptr = this.__wbg_ptr;
|
|
4569
|
+
this.__wbg_ptr = 0;
|
|
4570
|
+
JsGroupedMeshFinalization.unregister(this);
|
|
4571
|
+
return ptr;
|
|
4572
|
+
}
|
|
4573
|
+
free() {
|
|
4574
|
+
const ptr = this.__destroy_into_raw();
|
|
4575
|
+
wasm.__wbg_jsgroupedmesh_free(ptr, 0);
|
|
4576
|
+
}
|
|
4577
|
+
/**
|
|
4578
|
+
* Per-face start offsets into `indices`: `faceOffsets[i]` is the start of
|
|
4579
|
+
* face `i`, and the final element equals `indices.length`.
|
|
4580
|
+
* @returns {Uint32Array}
|
|
4581
|
+
*/
|
|
4582
|
+
get faceOffsets() {
|
|
4583
|
+
const ret = wasm.jsgroupedmesh_faceOffsets(this.__wbg_ptr);
|
|
4584
|
+
var v1 = getArrayU32FromWasm0(ret[0], ret[1]).slice();
|
|
4585
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
4586
|
+
return v1;
|
|
4587
|
+
}
|
|
4588
|
+
/**
|
|
4589
|
+
* Triangle indices (groups of 3).
|
|
4590
|
+
* @returns {Uint32Array}
|
|
4591
|
+
*/
|
|
4592
|
+
get indices() {
|
|
4593
|
+
const ret = wasm.jsgroupedmesh_indices(this.__wbg_ptr);
|
|
4594
|
+
var v1 = getArrayU32FromWasm0(ret[0], ret[1]).slice();
|
|
4595
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
4596
|
+
return v1;
|
|
4597
|
+
}
|
|
4598
|
+
/**
|
|
4599
|
+
* Flattened per-vertex normals as `[nx, ny, nz, ...]`.
|
|
4600
|
+
* @returns {Float32Array}
|
|
4601
|
+
*/
|
|
4602
|
+
get normals() {
|
|
4603
|
+
const ret = wasm.jsgroupedmesh_normals(this.__wbg_ptr);
|
|
4604
|
+
var v1 = getArrayF32FromWasm0(ret[0], ret[1]).slice();
|
|
4605
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
4606
|
+
return v1;
|
|
4607
|
+
}
|
|
4608
|
+
/**
|
|
4609
|
+
* Flattened vertex positions as `[x, y, z, ...]`.
|
|
4610
|
+
* @returns {Float32Array}
|
|
4611
|
+
*/
|
|
4612
|
+
get positions() {
|
|
4613
|
+
const ret = wasm.jsgroupedmesh_positions(this.__wbg_ptr);
|
|
4614
|
+
var v1 = getArrayF32FromWasm0(ret[0], ret[1]).slice();
|
|
4615
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
4616
|
+
return v1;
|
|
4617
|
+
}
|
|
4618
|
+
}
|
|
4619
|
+
if (Symbol.dispose) JsGroupedMesh.prototype[Symbol.dispose] = JsGroupedMesh.prototype.free;
|
|
4620
|
+
exports.JsGroupedMesh = JsGroupedMesh;
|
|
4621
|
+
|
|
4527
4622
|
/**
|
|
4528
4623
|
* A triangle mesh exposed to JavaScript.
|
|
4529
4624
|
*
|
|
@@ -4815,13 +4910,13 @@ function __wbg_get_imports() {
|
|
|
4815
4910
|
__wbg___wbindgen_throw_1506f2235d1bdba0: function(arg0, arg1) {
|
|
4816
4911
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
4817
4912
|
},
|
|
4818
|
-
|
|
4913
|
+
__wbg_error_85e019924b3d51f5: function(arg0, arg1) {
|
|
4819
4914
|
console.error(getStringFromWasm0(arg0, arg1));
|
|
4820
4915
|
},
|
|
4821
|
-
|
|
4916
|
+
__wbg_log_40a70746064f897c: function(arg0, arg1) {
|
|
4822
4917
|
console.log(getStringFromWasm0(arg0, arg1));
|
|
4823
4918
|
},
|
|
4824
|
-
|
|
4919
|
+
__wbg_warn_0f2eb98c4119d263: function(arg0, arg1) {
|
|
4825
4920
|
console.warn(getStringFromWasm0(arg0, arg1));
|
|
4826
4921
|
},
|
|
4827
4922
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
@@ -4851,6 +4946,9 @@ const BrepKernelFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
4851
4946
|
const JsEdgeLinesFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4852
4947
|
? { register: () => {}, unregister: () => {} }
|
|
4853
4948
|
: new FinalizationRegistry(ptr => wasm.__wbg_jsedgelines_free(ptr, 1));
|
|
4949
|
+
const JsGroupedMeshFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4950
|
+
? { register: () => {}, unregister: () => {} }
|
|
4951
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_jsgroupedmesh_free(ptr, 1));
|
|
4854
4952
|
const JsMeshFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4855
4953
|
? { register: () => {}, unregister: () => {} }
|
|
4856
4954
|
: new FinalizationRegistry(ptr => wasm.__wbg_jsmesh_free(ptr, 1));
|
|
@@ -4926,6 +5024,11 @@ function debugString(val) {
|
|
|
4926
5024
|
return className;
|
|
4927
5025
|
}
|
|
4928
5026
|
|
|
5027
|
+
function getArrayF32FromWasm0(ptr, len) {
|
|
5028
|
+
ptr = ptr >>> 0;
|
|
5029
|
+
return getFloat32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
5030
|
+
}
|
|
5031
|
+
|
|
4929
5032
|
function getArrayF64FromWasm0(ptr, len) {
|
|
4930
5033
|
ptr = ptr >>> 0;
|
|
4931
5034
|
return getFloat64ArrayMemory0().subarray(ptr / 8, ptr / 8 + len);
|
|
@@ -4949,6 +5052,14 @@ function getDataViewMemory0() {
|
|
|
4949
5052
|
return cachedDataViewMemory0;
|
|
4950
5053
|
}
|
|
4951
5054
|
|
|
5055
|
+
let cachedFloat32ArrayMemory0 = null;
|
|
5056
|
+
function getFloat32ArrayMemory0() {
|
|
5057
|
+
if (cachedFloat32ArrayMemory0 === null || cachedFloat32ArrayMemory0.byteLength === 0) {
|
|
5058
|
+
cachedFloat32ArrayMemory0 = new Float32Array(wasm.memory.buffer);
|
|
5059
|
+
}
|
|
5060
|
+
return cachedFloat32ArrayMemory0;
|
|
5061
|
+
}
|
|
5062
|
+
|
|
4952
5063
|
let cachedFloat64ArrayMemory0 = null;
|
|
4953
5064
|
function getFloat64ArrayMemory0() {
|
|
4954
5065
|
if (cachedFloat64ArrayMemory0 === null || cachedFloat64ArrayMemory0.byteLength === 0) {
|
package/package.json
CHANGED