Vertex Snapping for 3D objects and .obj files

Hi all,

Can any one suggest me how to do Vertex snapping for 3D objects and .obj files.

I need to measure the distance between 2 points in 3D modal. So when ever I move cursor nearer to 3D object corners it should be elevate corner points and pick the corners exact coordinates on mouse click.

Thank you

if I understand correctly, you want to measure the 3D distance of 2 vertices that have the 2D projection close to your mouse cursor?

Yes Cedric, I want to measure distance between any two vertices for 3D Modals

I think this can help : Find nearest vertex - #6 by Cedric

3 Likes

Hi, It is useful but I can’t get the Idea how to implement, Can you please give me any example code ?

This may help - https://playground.babylonjs.com/#CPRHN1#3