Forum

Author Topic: Select points within a polygon using script  (Read 1857 times)

aaltukhov

  • Newbie
  • *
  • Posts: 6
    • View Profile
Select points within a polygon using script
« on: February 19, 2020, 11:22:31 PM »
I wonder if there is a functionality to select points within a polygon?

Thank you!

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14847
    • View Profile
Re: Select points within a polygon using script
« Reply #1 on: February 22, 2020, 02:16:05 PM »
Hello aaltukhov,

Do you mean points of the dense cloud or sparse cloud?
Best regards,
Alexey Pasumansky,
Agisoft LLC

aaltukhov

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Select points within a polygon using script
« Reply #2 on: February 25, 2020, 12:31:15 AM »
I mean any points in general.

For example shape points or camera locations.
I can possibly use 'shapely' for that, but maybe there is a ready to use solution?

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14847
    • View Profile
Re: Select points within a polygon using script
« Reply #3 on: February 26, 2020, 08:53:11 PM »
Hello aaltukhov,

Then you can use any custom method (own function or some external modules) that allow to check if the given 3D point (or 2D point) is inside some polygon, defined as a sequence of 3D or 2D points.
Best regards,
Alexey Pasumansky,
Agisoft LLC