1chandu f05c63a0aa
Doc links (#521)
* Docs: Fix hyperlinks
* Update website link generation
* Replace website links with actual file path
2018-05-24 11:08:10 -07:00

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.