okgeometry-api 0.2.17 → 0.4.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.
@@ -372,20 +372,20 @@ export function loft_nurbs_surface(data) {
372
372
  * # Parameters
373
373
  * * `polyline_data` - Flat array where each polyline is prefixed by its point count:
374
374
  * [count1, x1, y1, z1, x2, y2, z2, ..., count2, x1, y1, z1, ...]
375
- * * `segments` - Number of segments to sample along each curve
376
- * * `with_caps` - Whether to create end caps
375
+ * * `_segments` - Ignored for polylines (kept for API compat). Points are used directly.
376
+ * * `with_caps` - Whether to create end caps (fan triangulation from center)
377
377
  *
378
378
  * # Returns
379
379
  * Mesh buffers for the lofted surface
380
380
  * @param {Float64Array} polyline_data
381
- * @param {number} segments
381
+ * @param {number} _segments
382
382
  * @param {boolean} with_caps
383
383
  * @returns {Float64Array}
384
384
  */
385
- export function loft_polylines(polyline_data, segments, with_caps) {
385
+ export function loft_polylines(polyline_data, _segments, with_caps) {
386
386
  const ptr0 = passArrayF64ToWasm0(polyline_data, wasm.__wbindgen_malloc);
387
387
  const len0 = WASM_VECTOR_LEN;
388
- const ret = wasm.loft_polylines(ptr0, len0, segments, with_caps);
388
+ const ret = wasm.loft_polylines(ptr0, len0, _segments, with_caps);
389
389
  var v2 = getArrayF64FromWasm0(ret[0], ret[1]).slice();
390
390
  wasm.__wbindgen_free(ret[0], ret[1] * 8, 8);
391
391
  return v2;
Binary file
package/wasm/package.json CHANGED
@@ -9,11 +9,13 @@
9
9
  "files": [
10
10
  "okgeometrycore_bg.wasm",
11
11
  "okgeometrycore.js",
12
+ "okgeometrycore_bg.js",
12
13
  "okgeometrycore.d.ts"
13
14
  ],
14
15
  "main": "okgeometrycore.js",
15
16
  "types": "okgeometrycore.d.ts",
16
17
  "sideEffects": [
18
+ "./okgeometrycore.js",
17
19
  "./snippets/*"
18
20
  ]
19
21
  }