Forum

Author Topic: Accessing Mesh Statistics  (Read 2032 times)

SamT

  • Newbie
  • *
  • Posts: 38
    • View Profile
Accessing Mesh Statistics
« on: June 24, 2019, 08:54:41 AM »
I see in the python manual for 1.4 there are methods for accessing the model statistics.

Could someone please post a working example for the connected components?

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14816
    • View Profile
Re: Accessing Mesh Statistics
« Reply #1 on: June 24, 2019, 10:32:30 AM »
Hello SamT,

Code: [Select]
chunk = Metashape.app.document.chunk
stats = chunk.model.statistics()
components = stats.components
print(components)
Best regards,
Alexey Pasumansky,
Agisoft LLC

SamT

  • Newbie
  • *
  • Posts: 38
    • View Profile
Re: Accessing Mesh Statistics
« Reply #2 on: June 24, 2019, 11:02:41 AM »
Thanks Alexey!