Shaojing Li 6a9c2e2445 Update links for the docs (#284)
* Update links for the docs
2017-07-26 19:58:23 -07:00

534 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.