SphereGeometry
Loading SphereGeometry…
A latitude/longitude sphere centered at the origin. Positive radius defaults to 0.5. nlat and nlong default to 10 and control latitude and longitude segments.
import {SphereGeometry} from '@math.gl/geometry/primitives';
const geometry = new SphereGeometry({radius: 0.75, nlat: 16, nlong: 24});
All primitives also accept id and additional attributes. Generated meshes expose
POSITION, NORMAL and TEXCOORD_0 attributes, triangle-list topology, and typed indices.
See Geometry for the mesh container API.