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/Mesh.d.ts
CHANGED
|
@@ -204,10 +204,10 @@ export declare class Mesh {
|
|
|
204
204
|
*/
|
|
205
205
|
static createBox(width: number, height: number, depth: number): Mesh;
|
|
206
206
|
/**
|
|
207
|
-
* Create a
|
|
207
|
+
* Create a geodesic sphere centered at origin, matching Manifold's sphere topology.
|
|
208
208
|
* @param radius - Sphere radius
|
|
209
|
-
* @param segments -
|
|
210
|
-
* @param rings -
|
|
209
|
+
* @param segments - Segment hint; rounded up internally to a multiple of 4
|
|
210
|
+
* @param rings - Compatibility-only detail hint; the higher of `segments` and `rings` is used
|
|
211
211
|
* @returns New Mesh representing the sphere
|
|
212
212
|
*/
|
|
213
213
|
static createSphere(radius: number, segments: number, rings: number): Mesh;
|
package/dist/Mesh.js
CHANGED
|
@@ -667,10 +667,10 @@ export class Mesh {
|
|
|
667
667
|
return Mesh.fromTrustedBuffer(wasm.mesh_create_box(width, height, depth));
|
|
668
668
|
}
|
|
669
669
|
/**
|
|
670
|
-
* Create a
|
|
670
|
+
* Create a geodesic sphere centered at origin, matching Manifold's sphere topology.
|
|
671
671
|
* @param radius - Sphere radius
|
|
672
|
-
* @param segments -
|
|
673
|
-
* @param rings -
|
|
672
|
+
* @param segments - Segment hint; rounded up internally to a multiple of 4
|
|
673
|
+
* @param rings - Compatibility-only detail hint; the higher of `segments` and `rings` is used
|
|
674
674
|
* @returns New Mesh representing the sphere
|
|
675
675
|
*/
|
|
676
676
|
static createSphere(radius, segments, rings) {
|