Geometry · function

solidSphere

A sphere of radius: segments around, half as many from pole to pole.

Explained in Hello world, Meshes and geometry.

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

Parameters

ParameterTypeDescription
radiusnumber
segmentsnumber
smooth?boolean