select a point in a cloud

Technical discussions
Post Reply
Mark Klein
Posts: 2
Joined: Wed Aug 19, 2020 7:34 am

select a point in a cloud

Post by Mark Klein »

hi. I am a newbie
I am looking at using dgk with Visual Basic.
Is there a way to select a point in a point cloud?
Thanks

Alfio_Tr
Posts: 6
Joined: Fri Aug 09, 2013 9:20 am

Re: select a point in a cloud

Post by Alfio_Tr »

Hi Mark
I do not believe there is "off the shelf" functionality for this. It is simple to code:

You probably need for a selection rectangle, which you have in pixels, to get coordinates of points which are under it in 3d?

For a 3d point to check whether it is under the selection rectangle use IView_DG.ProjectToScreen(Point_DG point3D). It returns pixels. Check that it is inside the selection area. Repeat this for all points in the cloud.

Regards
Alfio

Mark Klein
Posts: 2
Joined: Wed Aug 19, 2020 7:34 am

Re: select a point in a cloud

Post by Mark Klein »

Nice. Thank you

Post Reply