Type Alias MeshOptions

MeshOptions: GenericObject3DOptions & {
    animationMode?: AnimationMode;
    heading?: number;
    opacity?: number;
    pointSize?: number;
    scale?: number | [number, number, number];
    sourceOrientation?: SourceOrientation;
    states?: Item3DMeshUIStates;
    userData?: Record<string, any>;
    wireframe?: boolean;
}

Options to add or modify a mesh

Type Declaration

  • OptionalanimationMode?: AnimationMode

    Animation mode. Default: continuous

  • Optionalheading?: number

    Heading measured in degrees clockwise from true north.

  • Optionalopacity?: number

    Opacity of the mesh

  • OptionalpointSize?: number

    Point size, applicable only to point clouds. Default: 1

  • Optionalscale?: number | [number, number, number]

    Scale the mesh by a factor. Default: no scaling added

  • OptionalsourceOrientation?: SourceOrientation

    Rotation to apply to the model to add, as a Quaternion. Default: a rotation of PI/2 around the x axis, to adjust from the default ThreeJS space (right-hand, Y up) to the Maplibre space (right-hand, Z up)

  • Optionalstates?: Item3DMeshUIStates
  • OptionaluserData?: Record<string, any>
  • Optionalwireframe?: boolean

    Displays a mesh as wireframe if true (does not apply to point cloud) Default: false

Was this helpful?