webani - v1.0.0
    Preparing search index...

    Options for initializing a WebaniPolygon object.

    type WebaniPolygonOptions = {
        extraTransforms?: WorldTransform[];
        filledPoints: number[][];
        holes?: number[][][];
        material?: WebaniMaterial;
        position: number[];
        rotation?: Vector3;
        rotationalCenter?: Vector3;
        scale?: Vector3;
    }
    Index

    Properties

    extraTransforms?: WorldTransform[]

    Additional transforms applied to the polygon. Optional property.

    filledPoints: number[][]

    An array of filled points that define the polygon's outer shape.

    holes?: number[][][]

    An array of holes in the polygon, each hole defined by an array of points. Optional property.

    material?: WebaniMaterial

    The material for the polygon, which defines its appearance. Optional property.

    position: number[]

    The position of the polygon's center in 3D space, represented as an array of numbers [x, y, z].

    rotation?: Vector3

    The rotation of the polygon, represented as a Vector3. Optional property, default is [0, 0, 0].

    rotationalCenter?: Vector3

    The rotational center for the polygon. Optional property.

    scale?: Vector3

    The scale of the polygon in 3D space, represented as a Vector3. Optional property, default is [1, 1, 1].