Small World Engine API Reference - v0.46.1
    Preparing search index...

    Interface ExtrudeGeometryOptions

    Options for ExtrudeGeometry.

    interface ExtrudeGeometryOptions {
        depth?: number;
        innerShape?: Vector2D[];
        shape: Vector2D[];
    }
    Index

    Properties

    depth?: number

    The depth/thickness to extrude along the Z-axis. Defaults to 1.

    innerShape?: Vector2D[]

    Optional inner shape to create a hole. Must have the same number of points as shape.

    shape: Vector2D[]

    The 2D shape defined by a sequence of points. Must form a closed contour around the origin (0,0).