Author Topic: Gradual model selction - Python API  (Read 1204 times)


  • Newbie
  • *
  • Posts: 26
    • View Profile
Gradual model selction - Python API
« on: March 28, 2022, 11:56:30 AM »
Dear Metashape Team,

I was wondering if the tool "Gradual Selection" for models is also accessible via the Python API? I couldn't find such a function in the documentation but I might have overseen it. Specifically I am searching for the "Connected Component Size" criterion to "filter" my model.



  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: Gradual model selction - Python API
« Reply #1 on: April 04, 2022, 06:20:43 PM »
If you're looking to delete all components smaller than a certain size (which was why I was using this selection), then you can do model.removeComponents(size) where size is the minimum number of faces to keep in each component