Chevron Down
Table of Contents
Chevron DownGetting Started
Chevron DownAPI Reference


Creates a sphere geometry.

The generated geometry will have indices and POSITION, NORMAL and TEXCOORD_0 attributes.


Create a white SphereGeometry of radius 2

import {SphereGeometry} from '';
const sphere = new SphereGeometry({
  radius: 2


SphereGeometry extends Geometry


constructor(props : Object)

The constructor for the SphereGeometry class. Use this to create a new SphereGeometry.

  • props.nlat=10 - (number, optional) The number of vertices for latitude.
  • props.nlong=10 - (number, optional) The number of vertices for longitude.
  • props.radius=1 - (number, optional) The radius of the sphere.