Notifications
Clear all
[Closed] select edge under cursor
Mar 17, 2014 3:43 pm
Whats the best way to go about selecting an edge within a given distance of the cursor?
2 Replies
Mar 17, 2014 3:43 pm
Would it be best to use intersectRayEx to find the face under the mouse and the exact point where the mouse hit that face. Then from their calculate the distance between that point and the edges of that face to determin which edge is the closest. Then lastly select that edge?
Mar 17, 2014 3:43 pm
Unless someone has a better idea, I would say yes. You can use the barycentric coordinates to decide which edge to pick.