[page:Geometry] →

# [name]

A class for generating sphere geometries

## Constructor

### [name]( [page:Number radius], [page:Number segmentsWidth], [page:Number segmentsHeight], [page:Number phiStart], [page:Number phiLength], [page:Number thetaStart], [page:Number thetaLength] )

radius — sphere radius. Default is 50.
segmentsWidth — number of horizontal segments. Minimum value is 3, and the default is 8.
segmentsHeight — number of vertical segments. Minimum value is 2, and the default is 6.
phiStart — specify horizontal starting angle. Default is 0.
phiLength — specify horizontal sweep angle size. Default is Math.PI * 2.
thetaStart — specify vertical starting angle. Default is 0.
thetaLength — specify vertical sweep angle size. Default is Math.PI.
The geometry is created by sweeping and calculating vertexes around the Y axis (horizontal sweep) and the Z axis (vertical sweep). Thus, incomplete spheres (akin to 'sphere slices') can be created through the use of different values of phiStart, phiLength, thetaStart and thetaLength, in order to define the points in which we start (or end) calculating those vertices.

## Source

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]