mirror of
https://github.com/visgl/luma.gl.git
synced 2025-12-08 17:36:19 +00:00
764 B
764 B
SphereGeometry
Creates a sphere geometry.
The generated geometry will have indices and POSITION, NORMAL and TEXCOORD_0 attributes.
Usage
Create a white SphereGeometry of radius 2
import {SphereGeometry} from '@luma.gl/core';
const sphere = new SphereGeometry({
radius: 2
});
Inheritance
SphereGeometry extends Geometry
Methods
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.