Geometry · function

solidExtrude

A polygon in XZ (x, z pairs, either winding, convex or not) extruded along +Y from 0 to height, or centred on the origin when centre is set.

Explained in Hello world, Meshes and geometry.

function solidExtrude(profile: ArrayLike<number>, height: number, centre?: boolean): Solid
import { solidExtrude } from '@driftengine/core';

Parameters

ParameterTypeDescription
profileArrayLike<number>
heightnumber
centre?boolean