Agisoft Metashape

Agisoft Metashape => Python and Java API => Topic started by: lukasz.brozek on June 22, 2015, 11:02:20 AM

Title: Remove selection
Post by: lukasz.brozek 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?
Title: Re: Remove selection
Post by: Alexey Pasumansky 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.
Title: Re: Remove selection
Post by: lukasz.brozek on July 06, 2015, 09:44:00 AM
Could you tell me how I can get vertex coordinates of bounding box?