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.
- package/dist/wasm-base64.d.ts +1 -1
- package/dist/wasm-base64.d.ts.map +1 -1
- package/dist/wasm-base64.js +1 -1
- package/dist/wasm-base64.js.map +1 -1
- package/package.json +1 -1
- package/wasm/okgeometrycore.d.ts +0 -96
- package/wasm/okgeometrycore.js +7 -1383
- package/wasm/okgeometrycore_bg.js +5 -5
- package/wasm/okgeometrycore_bg.wasm +0 -0
- package/wasm/package.json +2 -0
|
@@ -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
|
-
* * `
|
|
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}
|
|
381
|
+
* @param {number} _segments
|
|
382
382
|
* @param {boolean} with_caps
|
|
383
383
|
* @returns {Float64Array}
|
|
384
384
|
*/
|
|
385
|
-
export function loft_polylines(polyline_data,
|
|
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,
|
|
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
|
}
|