I have as input a (triangular) mesh that has some holes. I’m trying to execute the vtkFillHolesFilter to close all the holes. It works well for most of the holes, but some of them are not being closed. I discovered that these roles that are not being closed by the fill holes filter are surrounded by some non-manifold edges. Then I made some test on Meshlab, I selected all the non-manifold edges, deleted all faces that share these edges and executed the fill holes, and it closed everything perfectly. But now I want to execute this process with VTK.
I need to remove from my mesh (a vtkPolyData), all the faces that are in contact with non-manifold edges.
I was able to identify all the non-manifold edges with the vtkFeatureEdges filter, but I’m not sure how to proceed to delete the faces that share these edges.
The resulting mesh should be the original mesh without any non-manifold edge.
Right now I have this:
|vtkSmartPointer featureEdges =||vtkSmartPointer::New();|
But I’m not sure how to use the featureEdges->GetOutput() to delete the faces around the edges from my meshPolydata.
I would appreciate some help.
*I also accept other possible solutions to remove all non-manifold edges from the mesh.
A picture from the process in Meshlab…