Icospheres

Icosphere

This a sphere based upon an icosahedron with 20 triangular faces which can be subdivided into smaller triangles.

MeshBuilder

Usage:

const icosphere = BABYLON.MeshBuilder.CreateIcoSphere("icosphere", options, scene);
optionsvaluedefault value
options
radius
value
(number) radius
default value
1
options
radiusX
value
(number) the X radius, overwrites the radius value
default value
radius
options
radiusY
value
(Vector3) the Y radius, overwrites the radius value
default value
radius
options
radiusZ
value
(number) the Z radius, overwrites the radius value
default value
radius
options
subdivisions
value
(number) the number of subdivisions
default value
4
options
flat
value
(boolean) if true, the mesh faces have their own normals
default value
true
options
updatable
value
(boolean) true if the mesh is updatable
default value
false
options
sideOrientation
value
(number) side orientation
default value
DEFAULTSIDE

##Examples Icosphere: Creating An Icosphere
Smoothed Icossphere: Creating A Smoothed Icosphere Less subdivisions and changed radii: Icosphere With Less Subdivisions Icosphere with animation over subdivisions: Icosphere With Animation Over Subdivisions

Mesh

Usage:

const icosphere = BABYLON.Mesh.CreateIcoSphere("icosphere", options, scene);

This is the same format as that for MeshBuilder