Forum

Author Topic: How correctly handle empty region when work with spited chunks?  (Read 1965 times)

godszerg

  • Newbie
  • *
  • Posts: 13
    • View Profile
Hello everyone,

I'm using split_chunks script to process my models. We all know if chunk region is empty we are going to face Zero Resolution error.  I've tried to skip empty chunks but it leads to incorrect mesh generation, like a total disaster. What is the correct way to handle empty chunks so they don't screw final mesh?

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14846
    • View Profile
Re: How correctly handle empty region when work with spited chunks?
« Reply #1 on: June 24, 2019, 05:12:21 PM »
Hello godszerg,

You can use try-except approach to skip the chunks with "Zero Resolution". The simple example:

Code: [Select]
try:
    chunk.buildDenseCloud()
except Exception:
    print("Skipping " + chunk.label)
Best regards,
Alexey Pasumansky,
Agisoft LLC