3D position of mouse pointer

Everything DG Kernel: Technical discussions and issues
Post Reply
Tyler Heath
Posts: 1
Joined: Thu Sep 12, 2024 4:51 am

3D position of mouse pointer

Post 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.
MadCAM
Posts: 2
Joined: Thu Sep 12, 2024 4:59 am

Re: 3D position of mouse pointer

Post 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.
Post Reply