vugie Posted February 3, 2009 Report Share Posted February 3, 2009 I'm using 3D Scene Graph control to let the user select sth on 3D model. This control has method "Pick Model" which gets xy coordinates within control and outputs references of objects on proper line of sight. I'm getting xy coordinates with "Mouse Down" event for that control and it works. But how to determine which point exactly user clicked? In terms of 3D coords, uv, face number or sth like this? Have I to manually calculate intersection of object and line of sight taking into account current projection and transformation? Generally quite complex (requires space sorting algorithm) and potentially slow... Another point. I would prefer to use rather 3D window than a control, because of speed. SceneWindow class has similar method - "Pick". But how to determine xy coordinates user clicked at? Have I to use API for that? LV 8.2.1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.