Geometry · function

solidIcosphere

An icosahedron subdivided level times onto a sphere of radius. Faceted by default — every triangle its own vertices and face normal — or smooth, sharing vertices with radial normals.

Explained in Hello world, Meshes and geometry.

function solidIcosphere(radius: number, level: number, smooth?: boolean): Solid
import { solidIcosphere } from '@driftengine/core';

Parameters

ParameterTypeDescription
radiusnumber
levelnumber
smooth?boolean