Function CreateIcoSphere
-
CreateIcoSphere(
name: string,
options?: {
backUVs?: Vector4;
flat?: boolean;
frontUVs?: Vector4;
radius?: number;
radiusX?: number;
radiusY?: number;
radiusZ?: number;
sideOrientation?: number;
subdivisions?: number;
updatable?: boolean;
},
scene?: Nullable<Scene>,
): MeshParameters
- name: string
defines the name of the mesh
- options: {
backUVs?: Vector4;
flat?: boolean;
frontUVs?: Vector4;
radius?: number;
radiusX?: number;
radiusY?: number;
radiusZ?: number;
sideOrientation?: number;
subdivisions?: number;
updatable?: boolean;
} = {}defines the options used to create the mesh
- scene: Nullable<Scene> = null
defines the hosting scene
Returns Mesh
the icosahedron mesh
- name: string
Creates a sphere based upon an icosahedron with 20 triangular faces which can be subdivided
radiussets the radius size (float) of the icosphere (default 1)radiusX,radiusYandradiusZ(all by default have the same value ofradius)subdivisionssets the number of subdivisions (positive integer, default 4). The more subdivisions, the more faces on the icosphere whatever its sizeflat(boolean, default true) gives each side its own normals. Set it to false to get a smooth continuous light reflection on the surfacefrontUVsandbackUVs(Vector4). Detail here : https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientationupdatable(default false) if its internal geometry is supposed to change once created