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

    Interface CylinderSectorOptions

    Configuration options for cylinder sector geometry.

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

    Hierarchy (View Summary)

    Index

    Properties

    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.

    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.