MeasureBodyBodyDistanceOperator
- class Operators.Measure.MeasureBodyBodyDistanceOperator()
This operator allows you to measure the minimum distance between two bodies. Moving the mouse over the model will highlight the body that will be measured. Clicking will select the first node to be measured, it will stay highlighted as you move the mouse away. Clicking a second time on a different body will begin the measurement. Once the measurement is completed you can move the mouse to position the measurement text box. The markup drawn represents the shortest distance between the two bodies you selected. Clicking a final time will place the measurement text box and finalize the measurement.
Constructors
Methods
Constructors
- MeasureBodyBodyDistanceOperator.constructor(viewer, view, measureManager)
- Arguments
viewer (
WebViewer()
) – Noneview (
View()
) – NonemeasureManager (
MeasureManager()
) – None
- Return type
MeasureBodyBodyDistanceOperator
Methods
addMapping
- MeasureBodyBodyDistanceOperator.addMapping(button, modifier)
- Arguments
button (
Button()
) – Nonemodifier (
KeyModifiers()
) – None
Adds a button and key modifier mapping for the operator. If no mapping is provided, all combinations are considered valid. All mappings require a mouse button, but a key modifier is optional.
- Return type
void
clearMapping
- MeasureBodyBodyDistanceOperator.clearMapping()
Clears any button and key modifier mappings for the operator.
- Return type
void
setMapping
- MeasureBodyBodyDistanceOperator.setMapping(button, modifier)
- Arguments
button (
Button()
) – Nonemodifier (
KeyModifiers()
) – None
Sets the button and key modifier mapping for the operator.
- Return type
void