Hide menu
Loading...
Searching...
No Matches
Measurements

Overview

Web Toolkit addon allows to create visualization objects for the following measurements:

  • Distance between two points
  • Angle between three points
Distance between two points
Distance between two points
Angle between three points
Angle between three points

Customization

The measurements can be customized:

To see changes on the viewport, the node with measurement geometry should be invalidated, then the scene should be updated.

// Change measurement settings
aMeasurement.lengthUnit = cadex.Base_LengthUnit.Base_LU_Inches;
aMeasurement.fontSize = 10;
aMeasurement.precision = 3;
// Mark scene node to be forcibly updated on the next scene update
aMeasurementNode.invalidate();
// Update scene to apply changes
await aScene.update();

Refer to Measurements example for a self-contained demonstration of the interactive measurements creation with the help of Web Toolkit.