Skip to main content

sphere()

Creates a full sphere with the given radius.

Returns: Transformable

Signatures

sphere(radius: number): Transformable

Creates a full sphere with the given radius.

ParameterTypeDescription
radiusnumberThe sphere radius

sphere(radius: number, angle: number): Transformable

Creates a partial sphere with the given radius and sweep angle.

ParameterTypeDescription
radiusnumberThe sphere radius
anglenumberThe sweep angle in degrees