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

    Interface CylinderSectorOptions

    Configuration options for cylinder sector geometry.

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

    Hierarchy (View Summary)

    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.

    radiusBottom?: number

    The radius at the bottom. Defaults to 1.

    radiusTop?: number

    The radius at the top. Defaults to 1. Set to 0 for a cone.

    thetaLength?: number

    The central angle of the sector in radians. Defaults to 2 * PI.

    thetaStart?: number

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