brepkit-wasm 0.10.0 → 0.11.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 +16 -0
- package/brepkit_wasm_bg.js +24 -0
- package/brepkit_wasm_bg.wasm +0 -0
- package/brepkit_wasm_node.cjs +24 -0
- package/package.json +1 -1
package/brepkit_wasm.d.ts
CHANGED
|
@@ -1518,6 +1518,22 @@ export class BrepKernel {
|
|
|
1518
1518
|
* Returns an error if the solid handle is invalid.
|
|
1519
1519
|
*/
|
|
1520
1520
|
validateSolid(solid: number): number;
|
|
1521
|
+
/**
|
|
1522
|
+
* Validate a solid with relaxed checks suitable for assembled geometry.
|
|
1523
|
+
*
|
|
1524
|
+
* Operations like boolean, fillet, and shell produce geometrically
|
|
1525
|
+
* correct shapes that may not have fully manifold topology (faces
|
|
1526
|
+
* from different operations may not share edges). This validation
|
|
1527
|
+
* skips Euler characteristic, boundary edge, non-manifold edge, and
|
|
1528
|
+
* shell connectivity checks.
|
|
1529
|
+
*
|
|
1530
|
+
* Returns 0 if the solid passes all structural checks.
|
|
1531
|
+
*
|
|
1532
|
+
* # Errors
|
|
1533
|
+
*
|
|
1534
|
+
* Returns an error if the solid handle is invalid.
|
|
1535
|
+
*/
|
|
1536
|
+
validateSolidRelaxed(solid: number): number;
|
|
1521
1537
|
/**
|
|
1522
1538
|
* Compute the volume of a solid.
|
|
1523
1539
|
*
|
package/brepkit_wasm_bg.js
CHANGED
|
@@ -3561,6 +3561,30 @@ export class BrepKernel {
|
|
|
3561
3561
|
}
|
|
3562
3562
|
return ret[0] >>> 0;
|
|
3563
3563
|
}
|
|
3564
|
+
/**
|
|
3565
|
+
* Validate a solid with relaxed checks suitable for assembled geometry.
|
|
3566
|
+
*
|
|
3567
|
+
* Operations like boolean, fillet, and shell produce geometrically
|
|
3568
|
+
* correct shapes that may not have fully manifold topology (faces
|
|
3569
|
+
* from different operations may not share edges). This validation
|
|
3570
|
+
* skips Euler characteristic, boundary edge, non-manifold edge, and
|
|
3571
|
+
* shell connectivity checks.
|
|
3572
|
+
*
|
|
3573
|
+
* Returns 0 if the solid passes all structural checks.
|
|
3574
|
+
*
|
|
3575
|
+
* # Errors
|
|
3576
|
+
*
|
|
3577
|
+
* Returns an error if the solid handle is invalid.
|
|
3578
|
+
* @param {number} solid
|
|
3579
|
+
* @returns {number}
|
|
3580
|
+
*/
|
|
3581
|
+
validateSolidRelaxed(solid) {
|
|
3582
|
+
const ret = wasm.brepkernel_validateSolidRelaxed(this.__wbg_ptr, solid);
|
|
3583
|
+
if (ret[2]) {
|
|
3584
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
3585
|
+
}
|
|
3586
|
+
return ret[0] >>> 0;
|
|
3587
|
+
}
|
|
3564
3588
|
/**
|
|
3565
3589
|
* Compute the volume of a solid.
|
|
3566
3590
|
*
|
package/brepkit_wasm_bg.wasm
CHANGED
|
Binary file
|
package/brepkit_wasm_node.cjs
CHANGED
|
@@ -3563,6 +3563,30 @@ class BrepKernel {
|
|
|
3563
3563
|
}
|
|
3564
3564
|
return ret[0] >>> 0;
|
|
3565
3565
|
}
|
|
3566
|
+
/**
|
|
3567
|
+
* Validate a solid with relaxed checks suitable for assembled geometry.
|
|
3568
|
+
*
|
|
3569
|
+
* Operations like boolean, fillet, and shell produce geometrically
|
|
3570
|
+
* correct shapes that may not have fully manifold topology (faces
|
|
3571
|
+
* from different operations may not share edges). This validation
|
|
3572
|
+
* skips Euler characteristic, boundary edge, non-manifold edge, and
|
|
3573
|
+
* shell connectivity checks.
|
|
3574
|
+
*
|
|
3575
|
+
* Returns 0 if the solid passes all structural checks.
|
|
3576
|
+
*
|
|
3577
|
+
* # Errors
|
|
3578
|
+
*
|
|
3579
|
+
* Returns an error if the solid handle is invalid.
|
|
3580
|
+
* @param {number} solid
|
|
3581
|
+
* @returns {number}
|
|
3582
|
+
*/
|
|
3583
|
+
validateSolidRelaxed(solid) {
|
|
3584
|
+
const ret = wasm.brepkernel_validateSolidRelaxed(this.__wbg_ptr, solid);
|
|
3585
|
+
if (ret[2]) {
|
|
3586
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
3587
|
+
}
|
|
3588
|
+
return ret[0] >>> 0;
|
|
3589
|
+
}
|
|
3566
3590
|
/**
|
|
3567
3591
|
* Compute the volume of a solid.
|
|
3568
3592
|
*
|
package/package.json
CHANGED