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): Solidimport { solidExtrude } from '@driftengine/core';Parameters
| Parameter | Type | Description |
|---|---|---|
profile | ArrayLike<number> | |
height | number | |
centre? | boolean |