brepkit-wasm 1.0.5 → 1.0.7
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 -1
- package/brepkit_wasm_bg.js +21 -1
- package/brepkit_wasm_bg.wasm +0 -0
- package/brepkit_wasm_node.cjs +21 -1
- package/package.json +1 -1
package/brepkit_wasm.d.ts
CHANGED
|
@@ -1092,12 +1092,23 @@ export class BrepKernel {
|
|
|
1092
1092
|
*/
|
|
1093
1093
|
meshBoolean(positions_a: Float64Array, indices_a: Uint32Array, positions_b: Float64Array, indices_b: Uint32Array, op: string, tolerance: number): JsMesh;
|
|
1094
1094
|
/**
|
|
1095
|
-
* Sample
|
|
1095
|
+
* Sample edges of a solid into polylines for wireframe rendering.
|
|
1096
1096
|
*
|
|
1097
1097
|
* Returns a `JsEdgeLines` containing flattened positions and per-edge
|
|
1098
1098
|
* offset indices. The `deflection` parameter controls sampling density.
|
|
1099
|
+
*
|
|
1100
|
+
* Smooth edges (between faces on the same underlying surface) are
|
|
1101
|
+
* automatically filtered out to reduce wireframe clutter. These edges
|
|
1102
|
+
* arise from boolean face-splitting and don't represent visible creases.
|
|
1099
1103
|
*/
|
|
1100
1104
|
meshEdges(solid: number, deflection: number): JsEdgeLines;
|
|
1105
|
+
/**
|
|
1106
|
+
* Sample ALL edges of a solid (no smooth-edge filtering).
|
|
1107
|
+
*
|
|
1108
|
+
* Same as `meshEdges` but includes edges between co-surface faces.
|
|
1109
|
+
* Useful for debugging topology.
|
|
1110
|
+
*/
|
|
1111
|
+
meshEdgesAll(solid: number, deflection: number): JsEdgeLines;
|
|
1101
1112
|
/**
|
|
1102
1113
|
* Mirror a solid across a plane.
|
|
1103
1114
|
*
|
package/brepkit_wasm_bg.js
CHANGED
|
@@ -2588,10 +2588,14 @@ export class BrepKernel {
|
|
|
2588
2588
|
return JsMesh.__wrap(ret[0]);
|
|
2589
2589
|
}
|
|
2590
2590
|
/**
|
|
2591
|
-
* Sample
|
|
2591
|
+
* Sample edges of a solid into polylines for wireframe rendering.
|
|
2592
2592
|
*
|
|
2593
2593
|
* Returns a `JsEdgeLines` containing flattened positions and per-edge
|
|
2594
2594
|
* offset indices. The `deflection` parameter controls sampling density.
|
|
2595
|
+
*
|
|
2596
|
+
* Smooth edges (between faces on the same underlying surface) are
|
|
2597
|
+
* automatically filtered out to reduce wireframe clutter. These edges
|
|
2598
|
+
* arise from boolean face-splitting and don't represent visible creases.
|
|
2595
2599
|
* @param {number} solid
|
|
2596
2600
|
* @param {number} deflection
|
|
2597
2601
|
* @returns {JsEdgeLines}
|
|
@@ -2603,6 +2607,22 @@ export class BrepKernel {
|
|
|
2603
2607
|
}
|
|
2604
2608
|
return JsEdgeLines.__wrap(ret[0]);
|
|
2605
2609
|
}
|
|
2610
|
+
/**
|
|
2611
|
+
* Sample ALL edges of a solid (no smooth-edge filtering).
|
|
2612
|
+
*
|
|
2613
|
+
* Same as `meshEdges` but includes edges between co-surface faces.
|
|
2614
|
+
* Useful for debugging topology.
|
|
2615
|
+
* @param {number} solid
|
|
2616
|
+
* @param {number} deflection
|
|
2617
|
+
* @returns {JsEdgeLines}
|
|
2618
|
+
*/
|
|
2619
|
+
meshEdgesAll(solid, deflection) {
|
|
2620
|
+
const ret = wasm.brepkernel_meshEdgesAll(this.__wbg_ptr, solid, deflection);
|
|
2621
|
+
if (ret[2]) {
|
|
2622
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
2623
|
+
}
|
|
2624
|
+
return JsEdgeLines.__wrap(ret[0]);
|
|
2625
|
+
}
|
|
2606
2626
|
/**
|
|
2607
2627
|
* Mirror a solid across a plane.
|
|
2608
2628
|
*
|
package/brepkit_wasm_bg.wasm
CHANGED
|
Binary file
|
package/brepkit_wasm_node.cjs
CHANGED
|
@@ -2590,10 +2590,14 @@ class BrepKernel {
|
|
|
2590
2590
|
return JsMesh.__wrap(ret[0]);
|
|
2591
2591
|
}
|
|
2592
2592
|
/**
|
|
2593
|
-
* Sample
|
|
2593
|
+
* Sample edges of a solid into polylines for wireframe rendering.
|
|
2594
2594
|
*
|
|
2595
2595
|
* Returns a `JsEdgeLines` containing flattened positions and per-edge
|
|
2596
2596
|
* offset indices. The `deflection` parameter controls sampling density.
|
|
2597
|
+
*
|
|
2598
|
+
* Smooth edges (between faces on the same underlying surface) are
|
|
2599
|
+
* automatically filtered out to reduce wireframe clutter. These edges
|
|
2600
|
+
* arise from boolean face-splitting and don't represent visible creases.
|
|
2597
2601
|
* @param {number} solid
|
|
2598
2602
|
* @param {number} deflection
|
|
2599
2603
|
* @returns {JsEdgeLines}
|
|
@@ -2605,6 +2609,22 @@ class BrepKernel {
|
|
|
2605
2609
|
}
|
|
2606
2610
|
return JsEdgeLines.__wrap(ret[0]);
|
|
2607
2611
|
}
|
|
2612
|
+
/**
|
|
2613
|
+
* Sample ALL edges of a solid (no smooth-edge filtering).
|
|
2614
|
+
*
|
|
2615
|
+
* Same as `meshEdges` but includes edges between co-surface faces.
|
|
2616
|
+
* Useful for debugging topology.
|
|
2617
|
+
* @param {number} solid
|
|
2618
|
+
* @param {number} deflection
|
|
2619
|
+
* @returns {JsEdgeLines}
|
|
2620
|
+
*/
|
|
2621
|
+
meshEdgesAll(solid, deflection) {
|
|
2622
|
+
const ret = wasm.brepkernel_meshEdgesAll(this.__wbg_ptr, solid, deflection);
|
|
2623
|
+
if (ret[2]) {
|
|
2624
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
2625
|
+
}
|
|
2626
|
+
return JsEdgeLines.__wrap(ret[0]);
|
|
2627
|
+
}
|
|
2608
2628
|
/**
|
|
2609
2629
|
* Mirror a solid across a plane.
|
|
2610
2630
|
*
|
package/package.json
CHANGED