jsc3d icon indicating copy to clipboard operation
jsc3d copied to clipboard

Distance between 2 points on mesh

Open GoogleCodeExporter opened this issue 10 years ago • 0 comments

Hello,

I am trying to make a viewer of mesh object (stl) where we can pick 2 points on 
the screen and calcul the distance. Currently I try using the onmousedown event 
of the view, I got a PickInfo object with x,y, depth and the clicked mesh. But 
the depth is always -infinity. (I use webgl renderer) I looked into the 
jsc3d.js and found the the depth is not set when using webgl.

It is possible to retrieve the position (x,y,z) of a pick point on a mesh ?

Thank you.


Original issue reported on code.google.com by [email protected] on 9 Mar 2015 at 10:01

GoogleCodeExporter avatar Jul 29 '15 04:07 GoogleCodeExporter