ViewerDrawingGeometry

Interface ViewerDrawingGeometry

Contains the underlying geometry of drawing primitives.

interface ViewerDrawingGeometry {
    color: [number, number, number, number];
    positions: number[];
    primitiveType: number;
    slices?: number[];
    useWorldUnits?: boolean;
    volume: [number, number, number, number, number, number];
    width?: number;
}

Properties

color: [number, number, number, number]

Specifies the color of the geometry.

positions: number[]

Specifies the vertex positions of the geometry.

primitiveType: number

Specifies primitive type of the geometry.

slices?: number[]

Specifies a partition of the vertex list into contiguous sub-ranges (slices).

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).

false
volume: [number, number, number, number, number, number]

Specifies the volume of the geometry.

width?: number

Specifies the width of the geometry.

1