Geometry · function

solidFrustum

A frustum with explicit radii at its bottom (−length/2) and top (+length/2), capped.

Explained in Hello world, Meshes and geometry.

function solidFrustum(radiusBottom: number, radiusTop: number, length: number, segments: number, smooth?: boolean): Solid
import { solidFrustum } from '@driftengine/core';

Parameters

ParameterTypeDescription
radiusBottomnumber
radiusTopnumber
lengthnumber
segmentsnumber
smooth?boolean