Measuring distances on a model? #4270
Unanswered
watson-e-and
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Yes, you can use positionAndNormalFromPoint to find the model-space coordinates of a user-clicked point - with two of those you can calculate the distance and show it in a DOM element. You can even make that DOM element a hotspot so that it follows the model like a dimension line if you want. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like users of my model to be able to measure distances on the model, kind of like on Google Earth where you can drop pins to measure the distance between points. Is this something that model-viewer can do? Is there a sample anywhere?
I used the sample at modelviewer.dev to add dimension lines to my model (from the Annotation section), which is very nice for giving overall context to the model, but adding something that's more flexible would be wonderful.
Beta Was this translation helpful? Give feedback.
All reactions