omrips / viewstl

Viewstl Javascript plugin - STL/OBJ 3D files Viewer by viewstl.com
MIT License
186 stars 46 forks source link

Measurement #13

Open chiragpurohit71085 opened 3 years ago

chiragpurohit71085 commented 3 years ago

How can we achieve measurement? I want to achieve something like

https://hollywood3dprinting.com/example-gallery

omrips commented 3 years ago

This is something outside the scope of the plugin.

If you want to achieve measurement, you should listen to mouse click, then translate it into the 3D world, that's dealing with THREE js lib, as discussed here: https://stackoverflow.com/questions/13055214/mouse-canvas-x-y-to-three-js-world-x-y-z