Polyline constructor.
Name of polyline
BimCoreApi instance
Optionaloptions: { maxPointCount?: number }Options for line creation
Name of polyline
ReadonlyonTriggered when apply is called or when camera moves around. By listening to this event it is possible to know when new points are added, updated and removed. It is also possible to see how far away the points are from the camera. What position they have in 2D space (perhaps one wants to add a HTML element to the DOM there.).
Color of the line.
The color
Color of the line
The color the line shall have.
Apply changes made to the points array. This will mirror the changes in the visual representation of the polygon line. It will also trigger onPointTrackableScreen events.
Sets point array to zero and disables visibility for the lines mesh. Also removes coordinate trackers for labels if present.
Sets point array to zero and disables visibility for the lines mesh. Also removes coordinate trackers for labels if present. And disposes the linemesh.
Gets the distance of the polyline.
Optionalo: { end: Point }Optional. Specifies point where distance calculation should end. That is distance from first point up to this point.
distance.
Represents a dynamic polyline. It is possible to add, insert and remove points to it and have those changes reflect its 3D visualization. Useful for tools that need to calculate distances between start and end points etc.