brepkit-wasm 2.45.0 → 2.46.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 +17 -0
- package/brepkit_wasm_bg.js +25 -0
- package/brepkit_wasm_bg.wasm +0 -0
- package/brepkit_wasm_node.cjs +25 -0
- package/package.json +1 -1
package/brepkit_wasm.d.ts
CHANGED
|
@@ -254,6 +254,23 @@ export class BrepKernel {
|
|
|
254
254
|
* Returns an error if any handle is invalid or the operation fails.
|
|
255
255
|
*/
|
|
256
256
|
compoundCut(target: number, tool_ids: Uint32Array): number;
|
|
257
|
+
/**
|
|
258
|
+
* Convert all analytic geometry in a solid to NURBS representation.
|
|
259
|
+
*
|
|
260
|
+
* Replaces planes, cylinders, cones, spheres, tori with NURBS surfaces and
|
|
261
|
+
* lines, circles, ellipses with NURBS curves. NURBS surfaces and curves
|
|
262
|
+
* already in the model are left untouched. Returns the number of entities
|
|
263
|
+
* converted.
|
|
264
|
+
*
|
|
265
|
+
* Equivalent to OCCT's `BRepBuilderAPI_NurbsConvert`. Stored pcurves are
|
|
266
|
+
* dropped during conversion — callers that depend on pcurves should
|
|
267
|
+
* recompute them afterwards.
|
|
268
|
+
*
|
|
269
|
+
* # Errors
|
|
270
|
+
*
|
|
271
|
+
* Returns an error if the solid handle is invalid or conversion fails.
|
|
272
|
+
*/
|
|
273
|
+
convertToBspline(solid: number): number;
|
|
257
274
|
/**
|
|
258
275
|
* Build a convex hull solid from a point cloud.
|
|
259
276
|
*
|
package/brepkit_wasm_bg.js
CHANGED
|
@@ -553,6 +553,31 @@ export class BrepKernel {
|
|
|
553
553
|
}
|
|
554
554
|
return ret[0] >>> 0;
|
|
555
555
|
}
|
|
556
|
+
/**
|
|
557
|
+
* Convert all analytic geometry in a solid to NURBS representation.
|
|
558
|
+
*
|
|
559
|
+
* Replaces planes, cylinders, cones, spheres, tori with NURBS surfaces and
|
|
560
|
+
* lines, circles, ellipses with NURBS curves. NURBS surfaces and curves
|
|
561
|
+
* already in the model are left untouched. Returns the number of entities
|
|
562
|
+
* converted.
|
|
563
|
+
*
|
|
564
|
+
* Equivalent to OCCT's `BRepBuilderAPI_NurbsConvert`. Stored pcurves are
|
|
565
|
+
* dropped during conversion — callers that depend on pcurves should
|
|
566
|
+
* recompute them afterwards.
|
|
567
|
+
*
|
|
568
|
+
* # Errors
|
|
569
|
+
*
|
|
570
|
+
* Returns an error if the solid handle is invalid or conversion fails.
|
|
571
|
+
* @param {number} solid
|
|
572
|
+
* @returns {number}
|
|
573
|
+
*/
|
|
574
|
+
convertToBspline(solid) {
|
|
575
|
+
const ret = wasm.brepkernel_convertToBspline(this.__wbg_ptr, solid);
|
|
576
|
+
if (ret[2]) {
|
|
577
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
578
|
+
}
|
|
579
|
+
return ret[0] >>> 0;
|
|
580
|
+
}
|
|
556
581
|
/**
|
|
557
582
|
* Build a convex hull solid from a point cloud.
|
|
558
583
|
*
|
package/brepkit_wasm_bg.wasm
CHANGED
|
Binary file
|
package/brepkit_wasm_node.cjs
CHANGED
|
@@ -555,6 +555,31 @@ class BrepKernel {
|
|
|
555
555
|
}
|
|
556
556
|
return ret[0] >>> 0;
|
|
557
557
|
}
|
|
558
|
+
/**
|
|
559
|
+
* Convert all analytic geometry in a solid to NURBS representation.
|
|
560
|
+
*
|
|
561
|
+
* Replaces planes, cylinders, cones, spheres, tori with NURBS surfaces and
|
|
562
|
+
* lines, circles, ellipses with NURBS curves. NURBS surfaces and curves
|
|
563
|
+
* already in the model are left untouched. Returns the number of entities
|
|
564
|
+
* converted.
|
|
565
|
+
*
|
|
566
|
+
* Equivalent to OCCT's `BRepBuilderAPI_NurbsConvert`. Stored pcurves are
|
|
567
|
+
* dropped during conversion — callers that depend on pcurves should
|
|
568
|
+
* recompute them afterwards.
|
|
569
|
+
*
|
|
570
|
+
* # Errors
|
|
571
|
+
*
|
|
572
|
+
* Returns an error if the solid handle is invalid or conversion fails.
|
|
573
|
+
* @param {number} solid
|
|
574
|
+
* @returns {number}
|
|
575
|
+
*/
|
|
576
|
+
convertToBspline(solid) {
|
|
577
|
+
const ret = wasm.brepkernel_convertToBspline(this.__wbg_ptr, solid);
|
|
578
|
+
if (ret[2]) {
|
|
579
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
580
|
+
}
|
|
581
|
+
return ret[0] >>> 0;
|
|
582
|
+
}
|
|
558
583
|
/**
|
|
559
584
|
* Build a convex hull solid from a point cloud.
|
|
560
585
|
*
|
package/package.json
CHANGED