Create a complete sphere with one exact positional sample at its periodic seam.
Finite segment counts use Three's floor/minimum normalization. The two UV
columns still have separate indices and texture coordinates, but the last
column reuses the first column's position and normal at the same longitude.
This preserves exact closure after a shared rigid world transform.
Nonfinite Float32 output, zero normals or collapsed indexed triangles refuse;
the admissible radius therefore also depends on the requested tessellation.
Parameters
radius: number = 1
Positive finite local-metre radius with representable, nondegenerate output.
widthSegments: number = 32
Finite longitude count, floored with minimum three.
heightSegments: number = 16
Finite latitude count, floored with minimum two.
Returns SphereGeometry
Caller-owned SphereGeometry; dispose it when its consumers retire.
Create a complete sphere with one exact positional sample at its periodic seam.
Finite segment counts use Three's floor/minimum normalization. The two UV columns still have separate indices and texture coordinates, but the last column reuses the first column's position and normal at the same longitude. This preserves exact closure after a shared rigid world transform. Nonfinite Float32 output, zero normals or collapsed indexed triangles refuse; the admissible radius therefore also depends on the requested tessellation.