Notifications
Clear all

[Closed] select edge under cursor

Whats the best way to go about selecting an edge within a given distance of the cursor?

2 Replies

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?

Unless someone has a better idea, I would say yes. You can use the barycentric coordinates to decide which edge to pick.