Forum

Author Topic: Remove selection  (Read 3889 times)

lukasz.brozek

  • Newbie
  • *
  • Posts: 3
    • View Profile
Remove selection
« on: June 22, 2015, 11:02:20 AM »
Hi! I'm new in Python scrypting and I have trouble. I read Photoscan Python Api manual, but I can't find solution.
Do you know how to make selection part of mesh outside of bounding box and delete it?
« Last Edit: June 22, 2015, 12:24:22 PM by lukasz.brozek »

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14847
    • View Profile
Re: Remove selection
« Reply #1 on: June 22, 2015, 06:23:03 PM »
Hello lukasz.brozek,

I think that you need to check every polygon (face) in the mesh model, whether its' vertices are inside or outside the Bounding Box. If all vertices are outside you can remove such polygon.
Best regards,
Alexey Pasumansky,
Agisoft LLC

lukasz.brozek

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Remove selection
« Reply #2 on: July 06, 2015, 09:44:00 AM »
Could you tell me how I can get vertex coordinates of bounding box?