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

    Interface TruncatedConeOptions

    Configuration options for truncated cone geometry (Kegelstumpf / conical frustum).

    interface TruncatedConeOptions {
        height?: number;
        heightSegments?: number;
        openEnded?: boolean;
        radialSegments?: number;
        radiusBottom?: number;
        radiusTop?: number;
        thetaLength?: number;
        thetaStart?: number;
    }
    Index
    height?: number

    The total height (h). Defaults to 2.

    heightSegments?: number

    The number of height subdivisions along the vertical axis. Defaults to 1.

    openEnded?: boolean

    Whether the cone ends are open (no top and bottom circular caps). Defaults to false.

    radialSegments?: number

    The number of radial subdivisions around the circumference. Defaults to 32.

    radiusBottom?: number

    The radius at the bottom base (r1). Defaults to 1.5.

    radiusTop?: number

    The radius at the top cap (r2). Defaults to 0.75.

    thetaLength?: number

    The central angle of the sector in radians (2π for full cone). Defaults to 2π.

    thetaStart?: number

    The start angle of the sector in radians. Defaults to 0.