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

    Interface ConeOptions

    Configuration options for cone geometry.

    interface ConeOptions {
        height?: number;
        heightSegments?: number;
        openEnded?: boolean;
        radialSegments?: number;
        radius?: number;
        thetaLength?: number;
        thetaStart?: number;
    }

    Hierarchy

    Index
    height?: number

    The total height of the cylinder. Defaults to 2.

    heightSegments?: number

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

    openEnded?: boolean

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

    radialSegments?: number

    The number of radial segments around the circumference. Defaults to 16.

    radius?: number

    The radius of the base of the cone. Defaults to 1.

    thetaLength?: number

    The central angle of the sector in radians. Defaults to 2 * PI (full cylinder).

    thetaStart?: number

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