mirror of
https://github.com/visgl/luma.gl.git
synced 2025-12-08 17:36:19 +00:00
* Docs: Fix hyperlinks * Update website link generation * Replace website links with actual file path
531 B
531 B
IcoSphere
Creates a sphere model by subdividing an Icosahedron. Inherits methods from Model.
Usage
Create a white IcoSphere of radius 1.
var whiteSphere = new IcoSphere(gl, {
iterations: 1,
colors: [1, 1, 1, 1]
});
Method
constructor
The constructor for the IcoSphere class. Use this to create a new IcoSphere.
var model = new IcoSphere(gl, {iterations=});
- iterations=0 - (number, optional) The number of iterations used to subdivide the Icosahedron.