Interface GreasedLineMeshOptions
interface GreasedLineMeshOptions {
colorPointers?: number[];
instance?: GreasedLineBaseMesh;
lazy?: boolean;
points: GreasedLinePoints;
pointsOptions?: GreasedLinePointsOptions;
ribbonOptions?: GreasedLineRibbonOptions;
updatable?: boolean;
uvs?: FloatArray;
widths?: number[];
}
colorPointers?: number[];
instance?: GreasedLineBaseMesh;
lazy?: boolean;
points: GreasedLinePoints;
pointsOptions?: GreasedLinePointsOptions;
ribbonOptions?: GreasedLineRibbonOptions;
updatable?: boolean;
uvs?: FloatArray;
widths?: number[];
}
Hierarchy (View Summary)
- GreasedLineMeshOptions
Index
Properties
Optionalcolor Pointers
colorPointers?: number[]
You can manually set the color pointers so you can control which segment/part will use which color from the colors material option
Optionalinstance
If instance is specified, lines are added to the specified instance. Defaults to undefined.
Optionallazy
lazy?: boolean
Use when
points
Points of the line.
Optionalpoints Options
Options for converting the points.
Optionalribbon Options
The options for the ribbon which will be used as a line. If this option is set the line switches automatically to a non camera facing mode.
Optionalupdatable
updatable?: boolean
If true, offsets and widths are updatable. Defaults to false.
Optionaluvs
UVs for the mesh
Optionalwidths
widths?: number[]
Each line segment (from point to point) can have it's width multiplier. Final width = widths[segmentIdx] * width. Defaults to empty array.
Options for creating a GreasedLineMesh