Documentation
    Preparing search index...

    Interface ExtrudeGeometryOptions

    Options of extrudeGeometry.

    interface ExtrudeGeometryOptions {
        capped?: boolean;
        depth?: number;
        shape: readonly Point2D[];
    }
    Index
    capped?: boolean

    Whether to close both ends with a cap; defaults to true.

    depth?: number

    Extent along Z; defaults to 1. The solid spans [-depth/2, depth/2].

    shape: readonly Point2D[]

    The closed outline to extrude, in the XY plane. At least three points, in either winding — the builder normalizes to counter-clockwise. The last point is not repeated: the outline closes from the last back to the first.

    Concave outlines are fine, capped or not, as of the §52 tessellation packet (2026-08-09). The outline must be simple — no edge crossing another — while the caps are on; see extrudeGeometry.