okgeometry-api 1.22.0 → 1.24.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.
@@ -298,6 +298,16 @@ export function brep_validate(json: string, tolerance: number): string;
298
298
  */
299
299
  export function brep_volume_area(json: string, tolerance: number): Float64Array;
300
300
 
301
+ /**
302
+ * Wireframe of the whole BREP in ONE crossing: per face, `u_count` +
303
+ * `v_count` iso-parametric curves at evenly spaced INTERIOR normalized
304
+ * parameters, clipped to each face's trimmed region. The body JSON is
305
+ * parsed ONCE for the entire sweep. Same packing as
306
+ * `brep_face_iso_curves_trimmed_normalized`; faces that fail to evaluate
307
+ * are skipped atomically.
308
+ */
309
+ export function brep_wireframe_curves(json: string, u_count: number, v_count: number): Float64Array;
310
+
301
311
  /**
302
312
  * Build a NURBS curve from raw control points with kernel-managed knots and weights.
303
313
  *
@@ -1592,6 +1602,7 @@ export interface InitOutput {
1592
1602
  readonly brep_transform: (a: number, b: number, c: number, d: number) => [number, number];
1593
1603
  readonly brep_validate: (a: number, b: number, c: number) => [number, number];
1594
1604
  readonly brep_volume_area: (a: number, b: number, c: number) => [number, number];
1605
+ readonly brep_wireframe_curves: (a: number, b: number, c: number, d: number) => [number, number];
1595
1606
  readonly build_nurbs_curve: (a: number, b: number, c: number, d: number) => [number, number];
1596
1607
  readonly chamfer_polycurve: (a: number, b: number, c: number) => [number, number];
1597
1608
  readonly chamfer_polyline_corners: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
@@ -795,6 +795,27 @@ export function brep_volume_area(json, tolerance) {
795
795
  return v2;
796
796
  }
797
797
 
798
+ /**
799
+ * Wireframe of the whole BREP in ONE crossing: per face, `u_count` +
800
+ * `v_count` iso-parametric curves at evenly spaced INTERIOR normalized
801
+ * parameters, clipped to each face's trimmed region. The body JSON is
802
+ * parsed ONCE for the entire sweep. Same packing as
803
+ * `brep_face_iso_curves_trimmed_normalized`; faces that fail to evaluate
804
+ * are skipped atomically.
805
+ * @param {string} json
806
+ * @param {number} u_count
807
+ * @param {number} v_count
808
+ * @returns {Float64Array}
809
+ */
810
+ export function brep_wireframe_curves(json, u_count, v_count) {
811
+ const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
812
+ const len0 = WASM_VECTOR_LEN;
813
+ const ret = wasm.brep_wireframe_curves(ptr0, len0, u_count, v_count);
814
+ var v2 = getArrayF64FromWasm0(ret[0], ret[1]).slice();
815
+ wasm.__wbindgen_free(ret[0], ret[1] * 8, 8);
816
+ return v2;
817
+ }
818
+
798
819
  /**
799
820
  * Build a NURBS curve from raw control points with kernel-managed knots and weights.
800
821
  *