ViewerDrawingGeometry¶
Interface ViewerDrawingGeometry
interface ViewerDrawingGeometry {
color: [number, number, number, number];
positions: number[];
primitiveType: number;
slices?: number[];
useWorldUnits?: boolean;
volume: [number, number, number, number, number, number];
width?: number;
}
color: [number, number, number, number];
positions: number[];
primitiveType: number;
slices?: number[];
useWorldUnits?: boolean;
volume: [number, number, number, number, number, number];
width?: number;
}
Index
Properties
Properties
color
color: [number, number, number, number]
Specifies the color of the geometry.
positions
positions: number[]
Specifies the vertex positions of the geometry.
primitive Type
primitiveType: number
Specifies primitive type of the geometry.
Optionalslices
slices?: number[]
Specifies a partition of the vertex list into contiguous sub-ranges (slices).
Optionaluse World Units
useWorldUnits?: boolean
Specifies how the width value is interpreted. If set to true, the width is interpreted in world space (meters) otherwise in screen space (pixels).
volume
volume: [number, number, number, number, number, number]
Specifies the volume of the geometry.
Optionalwidth
width?: number
Specifies the width of the geometry.
Contains the underlying geometry of drawing primitives.