This sample showcases a basic measurement tool.

We first load a basic scene (like in this example), then we handle keypress event 'M' to add measurement points on current selector location using:
ATON.SUI.addMeasurementPoint( P )

Where 'P' is location of the point: each pair creates a 3D measure in the virtual space, also compliant with immersive VR visualization.

You can add as many measurements as you like.

Note that 3D label also smartly adapts unit depending on measurement length (meters, centimeters, millimeters, etc.).
You can customize ATON.Utils.getHumanReadableDistance(d) to redefine your own unit if necessary.
Powered by ATON