Open Tyndall-log opened 5 months ago
Do I get it right that you pass a single face to the smoother? Then it has no degrees of freedom as the border of the region does not move. Did you try with a larger patch?
Yes, it seems like an error occurs when a range of faces that does not include all vertices of the mesh is provided. Despite giving a range of various faces, the error occurs every time. The reason for providing a range of a single face in the example was simply to provide a minimal example of it not working. However, according to the documentation, I believe that an error should not occur in this case.
I work on a fix. In the current version, when you put the vertices on the border of the patch in constraint_vertices
it works.
Issue Details
When a range other than the full range of the mesh is input into the FaceRange parameter of CGAL::Polygon_mesh_processing::smooth_shape, the function fails to operate properly.
My goal is to perform smoothing on specific parts of a mesh (such as selected vertices or surfaces). I used the smooth_shape function for this purpose, and it works well with the full range. However, I might not be using the function correctly. Any advice would be appreciated.
Source Code
I created the reproducible code using the example from the link below: CGAL shape smoothing example
output
case 1
case 2:
Environment