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 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 UV sphere centered at origin.
207
+ * Create a geodesic sphere centered at origin, matching Manifold's sphere topology.
208
208
  * @param radius - Sphere radius
209
- * @param segments - Number of longitudinal segments
210
- * @param rings - Number of latitudinal 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 UV sphere centered at origin.
670
+ * Create a geodesic sphere centered at origin, matching Manifold's sphere topology.
671
671
  * @param radius - Sphere radius
672
- * @param segments - Number of longitudinal segments
673
- * @param rings - Number of latitudinal 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) {