Forum

Author Topic: Resizing Reconstruction Volume  (Read 3760 times)

Dark_Corvid

  • Newbie
  • *
  • Posts: 6
    • View Profile
Resizing Reconstruction Volume
« on: June 26, 2019, 03:23:03 AM »
In Agisoft Metashape 1.5.3, how does one go about resizing the reconstruction volume? I searched the Metashape Python API for 1.5.3 and was not able to find the right information. An old version of this topic is here: https://www.agisoft.com/forum/index.php?topic=1504.0 but the method no longer works. ch.region is not in the API that I could find.

Any help would be appreciated.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15413
    • View Profile
Re: Resizing Reconstruction Volume
« Reply #1 on: June 26, 2019, 12:35:22 PM »
Hello Dark_Corvid,

In the thread that you are referring to some additional information is missing:
Code: [Select]
import Metashape as PhotoScan
doc = Metashape.app.document #active document
ch = doc.chunk #active chunk

Then you can access ch.region, that has ch.region.center, ch.region.rot, ch.region.size attributes.

Note that all these parameters related to the bounding box are defined in the internal chunk's coordinate system.
Best regards,
Alexey Pasumansky,
Agisoft LLC

Dark_Corvid

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Resizing Reconstruction Volume
« Reply #2 on: June 26, 2019, 07:03:30 PM »
Thank you very much!