Geometry · function
solidPrism
A triangular prism: the section in XY — base x wide at −y/2, apex at +y/2 — extruded z along
Z, centred. right puts the apex over the base's left end, a right angle there.
Explained in Hello world, Meshes and geometry.
function solidPrism(x: number, y: number, z: number, right?: boolean): Solidimport { solidPrism } from '@driftengine/core';Parameters
| Parameter | Type | Description |
|---|---|---|
x | number | |
y | number | |
z | number | |
right? | boolean |