# 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.

  ## Index

  Constructors

  - `constructor`

  Methods

  - `addMapping`
  - `clearMapping`
  - `setMapping`

## Constructors

`Operators.Measure.MeasureBodyBodyDistanceOperator.``constructor`()
  MeasureBodyBodyDistanceOperator(viewer: `IWebViewer`, view: `IView`, measureManager: `MeasureManager`): `MeasureBodyBodyDistanceOperator`

  Parameters

  > viewer: `IWebViewer`

  > view: `IView`

  > measureManager: `MeasureManager`

  Returns: `MeasureBodyBodyDistanceOperator`

## Methods

`Operators.Measure.MeasureBodyBodyDistanceOperator.``addMapping`()

  inherited

  addMapping(button: `Button`, modifier: `KeyModifiers`?): void

  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.

  Parameters

  > button: `Button`

  > modifier: `KeyModifiers` = KeyModifiers.None

  Returns: void

`Operators.Measure.MeasureBodyBodyDistanceOperator.``clearMapping`()

  inherited

  clearMapping(): void

  Clears any button and key modifier mappings for the operator.

  Returns: void

`Operators.Measure.MeasureBodyBodyDistanceOperator.``setMapping`()

  inherited

  setMapping(button: `Button`, modifier: `KeyModifiers`?): void

  Sets the button and key modifier mapping for the operator.

  Parameters

  > button: `Button`

  > modifier: `KeyModifiers` = KeyModifiers.None

  Returns: void

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your Docs generative AI assistant. Ask me anything about HOOPS Visualize Web or choose a sample question below to start a conversation:

What is HOOPS Visualize Web?
What are the latest release notes for HOOPS Visualize Web?
How do I start evaluating HOOPS Visualize Web?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...