okgeometry-api 1.1.5 → 1.1.6
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/Mesh.d.ts +3 -3
- package/dist/Mesh.js +3 -3
- 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 +3 -2
- package/src/Mesh.ts +11 -11
- package/src/wasm-base64.ts +1 -1
- package/wasm/okgeometrycore.d.ts +1 -1
- package/wasm/okgeometrycore.js +2 -2
- package/wasm/okgeometrycore_bg.wasm +0 -0
- package/wasm/package.json +1 -1
package/dist/wasm-base64.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wasm-base64.js","sourceRoot":"","sources":["../src/wasm-base64.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,MAAM,CAAC,MAAM,QAAQ,GAAG,
|
|
1
|
+
{"version":3,"file":"wasm-base64.js","sourceRoot":"","sources":["../src/wasm-base64.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,MAAM,CAAC,MAAM,QAAQ,GAAG,08kvDAA08kvD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "okgeometry-api",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.6",
|
|
4
4
|
"description": "Geometry engine API for AEC applications — NURBS, meshes, booleans, intersections. Powered by Rust/WASM.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -17,8 +17,9 @@
|
|
|
17
17
|
"wasm/"
|
|
18
18
|
],
|
|
19
19
|
"scripts": {
|
|
20
|
+
"build:wasm": "cd .. && wasm-pack build --target web --out-dir okgeometry-api/wasm",
|
|
20
21
|
"inline-wasm": "tsx scripts/inline-wasm.ts",
|
|
21
|
-
"build": "npm run inline-wasm && tsc",
|
|
22
|
+
"build": "npm run build:wasm && npm run inline-wasm && tsc",
|
|
22
23
|
"bench:boolean-manifold-baseline": "npm run build && tsx scripts/bench-boolean-manifold-baseline.ts",
|
|
23
24
|
"bench:boolean-replacement-heavy": "npm run build && tsx scripts/bench-boolean-replacement-heavy.ts",
|
|
24
25
|
"bench:boolean-deterministic": "npm run build && tsx scripts/bench-boolean-deterministic.ts",
|
package/src/Mesh.ts
CHANGED
|
@@ -1006,17 +1006,17 @@ export class Mesh {
|
|
|
1006
1006
|
return Mesh.fromTrustedBuffer(wasm.mesh_create_box(width, height, depth));
|
|
1007
1007
|
}
|
|
1008
1008
|
|
|
1009
|
-
/**
|
|
1010
|
-
* Create a
|
|
1011
|
-
* @param radius - Sphere radius
|
|
1012
|
-
* @param segments -
|
|
1013
|
-
* @param rings -
|
|
1014
|
-
* @returns New Mesh representing the sphere
|
|
1015
|
-
*/
|
|
1016
|
-
static createSphere(radius: number, segments: number, rings: number): Mesh {
|
|
1017
|
-
ensureInit();
|
|
1018
|
-
return Mesh.fromTrustedBuffer(wasm.mesh_create_sphere(radius, segments, rings));
|
|
1019
|
-
}
|
|
1009
|
+
/**
|
|
1010
|
+
* Create a geodesic sphere centered at origin, matching Manifold's sphere topology.
|
|
1011
|
+
* @param radius - Sphere radius
|
|
1012
|
+
* @param segments - Segment hint; rounded up internally to a multiple of 4
|
|
1013
|
+
* @param rings - Compatibility-only detail hint; the higher of `segments` and `rings` is used
|
|
1014
|
+
* @returns New Mesh representing the sphere
|
|
1015
|
+
*/
|
|
1016
|
+
static createSphere(radius: number, segments: number, rings: number): Mesh {
|
|
1017
|
+
ensureInit();
|
|
1018
|
+
return Mesh.fromTrustedBuffer(wasm.mesh_create_sphere(radius, segments, rings));
|
|
1019
|
+
}
|
|
1020
1020
|
|
|
1021
1021
|
/**
|
|
1022
1022
|
* Create a cylinder centered at origin with axis along Y.
|