Forum

Author Topic: Empty extent error while generating orthomosaic  (Read 4043 times)

julietteB

  • Newbie
  • *
  • Posts: 1
    • View Profile
Empty extent error while generating orthomosaic
« on: January 13, 2020, 07:29:10 PM »
Hi,

I'm trying to build an orthomosaic by planar projection, therefore I use the following code :

Code: [Select]
FrontXZ  = Metashape.OrthoProjection()
FrontXZ.matrix  = Metashape.Matrix( [ [ 1.0,  0.0, 0.0, 0.0], [0.0, 0.0, 1.0, 0.0], [ 0.0, -1.0,  0.0, 0.0], [0.0, 0.0, 0.0, 1.0] ] )
doc.chunk.addOrthomosaic()
doc.chunk.buildOrthomosaic('ModelData', 'MosaicBlending', fill_holes = True, cull_faces = False, refine_seamlines = False, projection = FrontXZ, resolution_x = 0.001, resolution_y = 0.001)

My bounding box is well-placed and well-sized, and my model has almost 3 million faces, but the error "Empty extent" stops the orthomosaic creation, and I can't understand where it comes from.

Could you please advise me a way to generate orthomosaics according to a specific direction?