Agisoft Metashape

Agisoft Metashape => Python and Java API => Topic started by: csherwood on October 21, 2018, 11:55:51 PM

Title: Making sure all points are exported, ignoring region bounding box
Post by: csherwood on October 21, 2018, 11:55:51 PM
I am working with the script of Mike James that uses a randomization process to generate new sparse point clouds. Sometimes it generates points that lie outside the region, and these points are not exported.

Is there a way to ensure all points are exported, ignoring the region?

Alternatively, is there a way to set the region to include all points?

Thanks!
Title: Re: Making sure all points are exported, ignoring region bounding box
Post by: Alexey Pasumansky on October 25, 2018, 08:34:05 PM
Hello csherwood,

Please try to set chunk.region.size to PhotoScan.Vector([0,0,0]) prior to the point cloud export. If the bounding box has zero size then all points will be exported.