Forum

Author Topic: Python Crop by box  (Read 1144 times)

adrian-var

  • Newbie
  • *
  • Posts: 4
    • View Profile
Python Crop by box
« on: November 22, 2022, 12:06:09 PM »
With UI, I can use "Selection" and "Crop Selection" to crop the mesh.

However, the selection is not accurate because I want to crop the mesh by coordinates.

Is it possible to perform crop by box in python?

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14847
    • View Profile
Re: Python Crop by box
« Reply #1 on: November 22, 2022, 12:26:15 PM »
Hello adrian-var,

If you are working in Professional edition and you require the model to be cropped in the single plane only, you can draw the polygonal shape, set its type to Outer Boundary and then duplicate the model with "crop to boundary shapes" option enabled.

In case this approach is fine for your needs,  it would be possible to create the boundary shapes using the accurate coordinates for its vertices via Python.
Best regards,
Alexey Pasumansky,
Agisoft LLC