Page 1 of 1

3D position of mouse pointer

Posted: Thu Sep 12, 2024 4:55 am
by Tyler Heath
Hello,

my goal is to get 3D point position under mouse using the depth buffer. I am just starting with this kernel.

Thanks for any help.

Re: 3D position of mouse pointer

Posted: Thu Sep 12, 2024 5:10 am
by MadCAM
There is IView_DG.ScreenTo3D, but I did not find it very useful.

What you probably need is selection. See the Pick sample. C# PickForm.GetObjectAt() does the job with IPick_DG.GetEntityAt(), which returns both the entity under the mouse and the point on its surface.