Script API - v1.26.10.22
    Preparing search index...

    Base for creating new brush shapes

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • Optionalsettings: {
            depth?: number;
            height?: number;
            hideRotation?: boolean;
            minRadius?: number;
            radius?: number;
            uniform?: boolean;
            width?: number;
            xRotation?: number;
            yRotation?: number;
            zRotation?: number;
        }

      Returns CylinderBrushShape

      Constructs a new instance of the CylinderBrushShape class

    Accessors

    • get depth(): number

      Returns number

    • get displayName(): string

      Returns string

    • get height(): number

      Returns number

    • get icon(): string

      Returns string

    • get id(): string

      Returns string

    • get radius(): number

      Returns number

    • get uniform(): boolean

      Returns boolean

    • get width(): number

      Returns number

    Methods

    • Parameters

      • OptionalcancelToken: { cancelled: boolean }

        Optional token to cancel the operation. Set cancelled to true to abort.

      • OptionalyieldInterval: number

        Number of blocks to process before yielding. Default is 10000.

      Returns Promise<RelativeVolumeListBlockVolume>

      Promise that resolves to the shape positions as Vector3 array.

      Asynchronously creates the shape, yielding control periodically to avoid timeouts. Use this for large shapes where createShape() may timeout.

      This function can't be called in early-execution mode.

    • Returns number

      Estimated block count

      Returns a mathematical estimate of the number of blocks in the shape. Used for UI display and validation before shape creation.

      This function can't be called in early-execution mode.