Algorithm to Select Closest Edge to Click in a 3D Mesh?
I have a set of points in 3D space that form a mesh on screen. I need the
user to be able to click an edge to select it. I need an algorithm that
determines the closest edge to where the user clicks so it can be selected
in the model viewer. I have been puzzling over this and couldn't think of
any good algorithm. Thanks.
No comments:
Post a Comment