Add a distance measurement programmatically, for example a measurement that was stored in a database earlier
A unique id that can be used to reference this measurement later. The user is responsible to make sure the id's of all active measurements are unique
The first coordinate in 3D space
The second coordinate in 3D space
Optional
normal: vec3The normal that was used on the first coordinate, this is not really used anywhere and can be left empty
Optional
constrain: falseWhether the original measurement was constrained, also not used anywhere to optional
The DistanceMeasurement object
Add a new listener, a listener can have many methods implemented, but none of them are required
Add a path measurement programmatically, for example a measurement that was stored in a database earlier
A unique id that can be used to reference this measurement later. The user is responsible to make sure the id's of all active measurements are unique
An array of coordinates in 3D space
Optional
normal: vec3The normal that was used on the first coordinate, this is not really used anywhere and can be left empty
Optional
constrain: booleanWhether the original measurement was constrained, also not used anywhere to optional
The PathMeasurement object
Get the active measurement
The currently active measurement (being constructed), or null when no measurement is active
The currently hovered Measurement, null if no measurement is being hovered over
Get the Measurement object for the given id
the Id of the measurement, must be a number (int)
The currently selected Measurement, null if no measurement is selected
List the measurements currently finished
An array of Measurement
Remove an existing measurements listener
Programmatically set the given measurement to be blurred. This will be reflected in 3D View. Keep in mind that this will trigger any listeners (for blurring measurements)
Programmatically set the given measurement to be the "hovered" measurement. This will be reflected in 3D View and any currently "hovered" measurement will be automatically blurred. Keep in mind that this will trigger any listeners (both for blurring any current measurement and for hovering the new measurement)
Programmatically set the given measurement to be the selected measurement. This will be reflected in 3D View and any currently selected measurement will be automatically unselected. Keep in mind that this will trigger any listeners (both for unselecting any current measurement and for selecting the new measurement)
Optional
measurement: MeasurementThe measurement that you want to select. You can also pass null to unselect the currently selected measurement
Start a new distance measurement
Optional
constrain: booleanWhether this measurement should be constrained (perpendiculair to the starting face)
A reference to the started DistanceMeasurement
Start a new path measurement
A reference to the started PathMeasurement
All measuring related methods are available on this class. Generally the Viewer3d has a reference to an instance of this class. There can only be one measurement "active" at a time. A measurement that is "active" is still being constructed by the user. When an active measurement is being "finished" it will stop being editable.