Page 1 of 1

select a point in a cloud

Posted: Wed Aug 19, 2020 7:36 am
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

Re: select a point in a cloud

Posted: Fri Aug 21, 2020 3:03 am
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

Re: select a point in a cloud

Posted: Mon Aug 24, 2020 4:30 am
by Mark Klein
Nice. Thank you