
26 Oct
2023
26 Oct
'23
10:41 a.m.
The function add_face uses 3 ordered VertexHandle to add a face to the mesh. If the order of vertices is incompatible with the existing mesh (so that the face would be wrongly oriented) or a triangle already exists with those 3 vertices, this is the typical warning OpenMesh gives: PolyMeshT::add_face: complex edge I was wondering if it is possible to test whether a face addition would result in such complex edge warning and skip the addition if it would? I'm thinking some kind of try-catch block. Alternatively, how can I remove the face that caused such an incompatibility? Note that here my aim is not to properly orient the new face. I simply do not want to add it if it causes incompatibilities. Thank you and all the best, Botond