-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
triangulate_refine_and_fair_hole not working #7283
Comments
Hello, For me this feature works fine. I tried your mesh piece_1.off and according to CGAL it has no border, hence no hole to fill. |
Also tried with VCG, same conclusion: no border. |
It indeed seems that all your faces are duplicated. |
I checked with VCG. @sloriot is right: all faces are duplicated. After removing the duplicates, five boundary cycles are found. |
You can read the file as a polygon soup and convert it to a polygon mesh after cleaning, then there's no duplicate face. std::vector<Point_3> points;
std::vector<std::vector<size_t>> faces;
std::ifstream infile;
infile.open(filename);
bool ok = CGAL::IO::read_OFF(infile, points, faces);
infile.close()
...... |
Hello! Thank you so much for you feedback! Indeed passing through |
By creating the polygon soup from the start without going through mesh -> polygon soup -> cleaning -> cvt2mesh it works. Thanks for your time! |
Issue Details
Hello CGAL community!
I am trying to fill some holes in several meshes with the wonderful
CGAL::Polygon_mesh_processing::triangulate_refine_and_fair_hole()
. Unfortunately for all the meshes I am trying to patch it does not close not even one hole.I've seen a similar issue reporting the bad quality of the mesh as the source of the inefficiency of the hole filler function. This is way I cleaned out the mesh via converting the mesh back to a polygon soup (polygon_mesh_to_polygon_soup), cleaning the soup (repair_polygon_soup), before converting back to a polygon mesh (orient_polygon_soup + polygon_soup_to_polygon_mesh). But still no hole filling.
Please find attached 3 examples of mesh objects I am trying to patch, as well few images down below.
↓↓↓CGAL_mesh_fill_holes_data.zip↓↓↓
Many thanks in advance for any help or hint you can provide! 🙌
Source Code
Environment
The text was updated successfully, but these errors were encountered: