brepkit-wasm 2.97.1 → 2.98.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 +12 -0
- package/brepkit_wasm_bg.js +34 -3
- package/brepkit_wasm_bg.wasm +0 -0
- package/brepkit_wasm_node.cjs +34 -3
- package/package.json +1 -1
package/brepkit_wasm.d.ts
CHANGED
|
@@ -807,6 +807,18 @@ export class BrepKernel {
|
|
|
807
807
|
* `periodicU`/`periodicV`, and `domainU`/`domainV`.
|
|
808
808
|
*/
|
|
809
809
|
getNurbsSurfaceData(face: number): string;
|
|
810
|
+
/**
|
|
811
|
+
* Type-gated read-only B-Spline/NURBS surface data for a face.
|
|
812
|
+
*
|
|
813
|
+
* Unlike `getNurbsSurfaceData`, this never converts analytic surfaces:
|
|
814
|
+
* faces backed by a plane, cylinder, cone, sphere, or torus return the
|
|
815
|
+
* JSON literal `null`. Only intrinsically free-form (B-Spline/NURBS) faces
|
|
816
|
+
* yield a record with `degreeU`/`degreeV`, `nbPolesU`/`nbPolesV`, the
|
|
817
|
+
* row-major `poles` grid (u-major, v-minor) with the matching `weights`
|
|
818
|
+
* grid, distinct `knotsU`/`knotsV` paired with `multiplicitiesU`/
|
|
819
|
+
* `multiplicitiesV`, `isPeriodicU`/`isPeriodicV`, and `isRational`.
|
|
820
|
+
*/
|
|
821
|
+
getNurbsSurfaceDataParity(face: number): string;
|
|
810
822
|
/**
|
|
811
823
|
* Get the orientation of a shape.
|
|
812
824
|
*
|
package/brepkit_wasm_bg.js
CHANGED
|
@@ -1776,6 +1776,37 @@ export class BrepKernel {
|
|
|
1776
1776
|
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
1777
1777
|
}
|
|
1778
1778
|
}
|
|
1779
|
+
/**
|
|
1780
|
+
* Type-gated read-only B-Spline/NURBS surface data for a face.
|
|
1781
|
+
*
|
|
1782
|
+
* Unlike `getNurbsSurfaceData`, this never converts analytic surfaces:
|
|
1783
|
+
* faces backed by a plane, cylinder, cone, sphere, or torus return the
|
|
1784
|
+
* JSON literal `null`. Only intrinsically free-form (B-Spline/NURBS) faces
|
|
1785
|
+
* yield a record with `degreeU`/`degreeV`, `nbPolesU`/`nbPolesV`, the
|
|
1786
|
+
* row-major `poles` grid (u-major, v-minor) with the matching `weights`
|
|
1787
|
+
* grid, distinct `knotsU`/`knotsV` paired with `multiplicitiesU`/
|
|
1788
|
+
* `multiplicitiesV`, `isPeriodicU`/`isPeriodicV`, and `isRational`.
|
|
1789
|
+
* @param {number} face
|
|
1790
|
+
* @returns {string}
|
|
1791
|
+
*/
|
|
1792
|
+
getNurbsSurfaceDataParity(face) {
|
|
1793
|
+
let deferred2_0;
|
|
1794
|
+
let deferred2_1;
|
|
1795
|
+
try {
|
|
1796
|
+
const ret = wasm.brepkernel_getNurbsSurfaceDataParity(this.__wbg_ptr, face);
|
|
1797
|
+
var ptr1 = ret[0];
|
|
1798
|
+
var len1 = ret[1];
|
|
1799
|
+
if (ret[3]) {
|
|
1800
|
+
ptr1 = 0; len1 = 0;
|
|
1801
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
1802
|
+
}
|
|
1803
|
+
deferred2_0 = ptr1;
|
|
1804
|
+
deferred2_1 = len1;
|
|
1805
|
+
return getStringFromWasm0(ptr1, len1);
|
|
1806
|
+
} finally {
|
|
1807
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
1808
|
+
}
|
|
1809
|
+
}
|
|
1779
1810
|
/**
|
|
1780
1811
|
* Get the orientation of a shape.
|
|
1781
1812
|
*
|
|
@@ -4696,13 +4727,13 @@ export function __wbg___wbindgen_debug_string_edece8177ad01481(arg0, arg1) {
|
|
|
4696
4727
|
export function __wbg___wbindgen_throw_9c31b086c2b26051(arg0, arg1) {
|
|
4697
4728
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
4698
4729
|
}
|
|
4699
|
-
export function
|
|
4730
|
+
export function __wbg_error_d4a3a8206d7de779(arg0, arg1) {
|
|
4700
4731
|
console.error(getStringFromWasm0(arg0, arg1));
|
|
4701
4732
|
}
|
|
4702
|
-
export function
|
|
4733
|
+
export function __wbg_log_21a849baa85b6bfa(arg0, arg1) {
|
|
4703
4734
|
console.log(getStringFromWasm0(arg0, arg1));
|
|
4704
4735
|
}
|
|
4705
|
-
export function
|
|
4736
|
+
export function __wbg_warn_96d719a753ea1a18(arg0, arg1) {
|
|
4706
4737
|
console.warn(getStringFromWasm0(arg0, arg1));
|
|
4707
4738
|
}
|
|
4708
4739
|
export function __wbindgen_cast_0000000000000001(arg0, arg1) {
|
package/brepkit_wasm_bg.wasm
CHANGED
|
Binary file
|
package/brepkit_wasm_node.cjs
CHANGED
|
@@ -1778,6 +1778,37 @@ class BrepKernel {
|
|
|
1778
1778
|
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
1779
1779
|
}
|
|
1780
1780
|
}
|
|
1781
|
+
/**
|
|
1782
|
+
* Type-gated read-only B-Spline/NURBS surface data for a face.
|
|
1783
|
+
*
|
|
1784
|
+
* Unlike `getNurbsSurfaceData`, this never converts analytic surfaces:
|
|
1785
|
+
* faces backed by a plane, cylinder, cone, sphere, or torus return the
|
|
1786
|
+
* JSON literal `null`. Only intrinsically free-form (B-Spline/NURBS) faces
|
|
1787
|
+
* yield a record with `degreeU`/`degreeV`, `nbPolesU`/`nbPolesV`, the
|
|
1788
|
+
* row-major `poles` grid (u-major, v-minor) with the matching `weights`
|
|
1789
|
+
* grid, distinct `knotsU`/`knotsV` paired with `multiplicitiesU`/
|
|
1790
|
+
* `multiplicitiesV`, `isPeriodicU`/`isPeriodicV`, and `isRational`.
|
|
1791
|
+
* @param {number} face
|
|
1792
|
+
* @returns {string}
|
|
1793
|
+
*/
|
|
1794
|
+
getNurbsSurfaceDataParity(face) {
|
|
1795
|
+
let deferred2_0;
|
|
1796
|
+
let deferred2_1;
|
|
1797
|
+
try {
|
|
1798
|
+
const ret = wasm.brepkernel_getNurbsSurfaceDataParity(this.__wbg_ptr, face);
|
|
1799
|
+
var ptr1 = ret[0];
|
|
1800
|
+
var len1 = ret[1];
|
|
1801
|
+
if (ret[3]) {
|
|
1802
|
+
ptr1 = 0; len1 = 0;
|
|
1803
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
1804
|
+
}
|
|
1805
|
+
deferred2_0 = ptr1;
|
|
1806
|
+
deferred2_1 = len1;
|
|
1807
|
+
return getStringFromWasm0(ptr1, len1);
|
|
1808
|
+
} finally {
|
|
1809
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
1810
|
+
}
|
|
1811
|
+
}
|
|
1781
1812
|
/**
|
|
1782
1813
|
* Get the orientation of a shape.
|
|
1783
1814
|
*
|
|
@@ -4707,13 +4738,13 @@ function __wbg_get_imports() {
|
|
|
4707
4738
|
__wbg___wbindgen_throw_9c31b086c2b26051: function(arg0, arg1) {
|
|
4708
4739
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
4709
4740
|
},
|
|
4710
|
-
|
|
4741
|
+
__wbg_error_d4a3a8206d7de779: function(arg0, arg1) {
|
|
4711
4742
|
console.error(getStringFromWasm0(arg0, arg1));
|
|
4712
4743
|
},
|
|
4713
|
-
|
|
4744
|
+
__wbg_log_21a849baa85b6bfa: function(arg0, arg1) {
|
|
4714
4745
|
console.log(getStringFromWasm0(arg0, arg1));
|
|
4715
4746
|
},
|
|
4716
|
-
|
|
4747
|
+
__wbg_warn_96d719a753ea1a18: function(arg0, arg1) {
|
|
4717
4748
|
console.warn(getStringFromWasm0(arg0, arg1));
|
|
4718
4749
|
},
|
|
4719
4750
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
package/package.json
CHANGED