The single color of the part
Custom data for the part. This field is not used by EnvisionWeb.
Controls the line width (pixels)
The line terminator draw mode
Clear start and end terminators
Picking
Draw arrows at end of lines
Draw arrows at start of lines
Draw bars at end of lines
Draw bars at start of lines
Sets the vertices for the lines.
The coordinates need to be interleaved (x0, y0, z0, x1, y1, z1, ...)
Lines will be drawn between [x0, y0, z0] and [x1, y1, z1], and between [x2, y2, z2] and [x3, y3, z3], ..., so the number of lines will be vertices.length / 6.
In order to draw a continuous path connecting all the given points, use utils.PathGenerator:
const mrkModel = new cee.mrk.MarkupModel();
const partLines = mrkModel.addLinesPart();
const points: cee.Vec3[] = [ ... ];
const vertices = cee.utils.PathGenerator.generateVerticesForPath(points);
partLines.setVertices(vertices);
Sets the vertices for the lines from a Float32Array.
The coordinates need to be interleaved (x0, y0, z0, x1, y1, z1, ...)
This is the most optimal setting as the PartLines will just hold a reference to the passed array and not copy any data.
Lines will be drawn between [x0, y0, z0] and [x1, y1, z1], and between [x2, y2, z2] and [x3, y3, z3], ..., so the number of lines will be vertices.length / 6.
Generated using TypeDoc
A part that can show lines in a MarkupModel.
Use MarkupModel.addLinesPart to create a new instance of this class.