SruthyJohn / jsc3d

Automatically exported from code.google.com/p/jsc3d
0 stars 0 forks source link

Distance between 2 points on mesh #151

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 FAcarig...@gmail.com on 9 Mar 2015 at 10:01