cnr-isti-vclab / PyMeshLab

The open source mesh processing python library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Selection of faces based on a boolean mask

cong-yi opened this issue · comments

Thank you for offering such a reliable toolkit for geometry processing using Python.

I currently have a fundamental requirement for my algorithm: I need to select a set of faces based on my custom face mask. However, I'm finding it challenging to achieve this using pymeshlab: In the earlier version, it was possible to select faces using "face_quality" as a workaround, but even this approach is no longer valid in the current version. Do you have any suggestions on how to achieve this in the updated version?

Thank you very much!

What do you mean with "even this approach is no longer valid in the current version"?
As far as I remember, no functionalities have been removed.
Just using the filter compute_selection_by_condition_per_face with a parameter fq should select all the faces having a given value as quality.

What do you mean with "even this approach is no longer valid in the current version"? As far as I remember, no functionalities have been removed. Just using the filter compute_selection_by_condition_per_face with a parameter fq should select all the faces having a given value as quality.

Thank you for the reply. I mean during the class initialization, when I create a pymeshlab.Mesh, it is impossible to initialize the mesh using my customized boolean mask as "face_quality" in the current version. This was removed after v0.2.1. And I have no idea how to set fq explicitly after the mesh is already created. I do need to set fq for face selection, since my own boolean face mask is very complicated to compute by using the 'per face condition'.