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;
}
animationMode?: AnimationMode;
heading?: number;
opacity?: number;
pointSize?: number;
scale?: number | [number, number, number];
sourceOrientation?: SourceOrientation;
states?: Item3DMeshUIStates;
userData?: Record<string, any>;
wireframe?: boolean;
}
Type Declaration
OptionalanimationMode?: AnimationModeAnimation mode. Default:
continuousOptionalheading?: numberHeading measured in degrees clockwise from true north.
Optionalopacity?: numberOpacity of the mesh
OptionalpointSize?: numberPoint size, applicable only to point clouds. Default: 1
Optionalscale?: number | [number, number, number]Scale the mesh by a factor. Default: no scaling added
OptionalsourceOrientation?: SourceOrientationRotation 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?: Item3DMeshUIStatesOptionaluserData?: Record<string, any>Optionalwireframe?: booleanDisplays a mesh as wireframe if true (does not apply to point cloud) Default:
false
Options to add or modify a mesh