Creating Polyhedra Shapes

Polyhedra

There are a multitude of polyhedra, too many to create by individual names, other than the cube which uses CreateBox. The names themselves often take too long to write when coding and so Babylon.js has provides 15 basic ones a number. There are many beyond these 15 and those can be created from custom data sets provided in the form of Playground examples.

The twenty sided icosahedron has the interesting property of approximating a sphere. By dividing each face into triangles and then mapping the resulting vertices onto a sphere it gives a better approximation of a sphere. The solids formed are called icospheres and provide a more regular distribution of triangles around a sphere then the CreateSphere method.

Coming next

Provided Polyhedra
Learn the provided polyhedra in Babylon.js.
Provided Polyhedra
Creating Custom Polyhedra
Learn how to create custom polyhedra in Babylon.js.
Creating Custom Polyhedra
Icospheres
Learn how to create icospheres in Babylon.js.
Icospheres