-
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
Add do_snap parameter to PMP::autorefine_triangle_soup #8744
base: master
Are you sure you want to change the base?
Conversation
…umber type; tested with EPECK et EPICK
What do you think of |
do you suggest to create a new function |
renaming the named parameter, provided Mael thinks it is a better name too. |
…espace
I do not like an |
note that's a named parameter, not a free function |
there is already the named parameter : |
OK, but I also meant the function |
for that one it could be |
and PMP examples fully red https://cgal.geometryfactory.com/CGAL/testsuite/summary-6.1-Ic-91.html?package=Polygon_mesh_processing_Examples |
…n snap_polygon_soup.cpp
Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/autorefinement.h
Outdated
Show resolved
Hide resolved
Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/autorefinement.h
Outdated
Show resolved
Hide resolved
Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/autorefinement.h
Outdated
Show resolved
Hide resolved
..._mesh_processing/include/CGAL/Polygon_mesh_processing/internal/triangle_soup_snap_rounding.h
Outdated
Show resolved
Hide resolved
1a54759
to
3b29156
Compare
..._mesh_processing/include/CGAL/Polygon_mesh_processing/internal/triangle_soup_snap_rounding.h
Show resolved
Hide resolved
Co-authored-by: Sebastien Loriot <sloriot.ml@gmail.com>
Co-authored-by: Sebastien Loriot <sloriot.ml@gmail.com>
Co-authored-by: Sebastien Loriot <sloriot.ml@gmail.com>
…to the voxel center instead of the voxel center
Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/autorefinement.h
Outdated
Show resolved
Hide resolved
…utorefinement.h Co-authored-by: Andreas Fabri <andreas.fabri@geometryfactory.com>
a8c3c28
to
ab56f76
Compare
void autorefine_triangle_soup(PointRange& soup_points, | ||
TriangleRange& soup_triangles, | ||
const NamedParameters& np = parameters::default_values()) | ||
bool autorefine_triangle_soup_(PointRange& soup_points, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does the function name end with an underscore ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need to find another name; I did that temporarily. I added a front function, autorefine_triangle_soup, that dispatches execution between this function and snap_triangle_soup because the mutual calling between them posed difficulties. Is autorefine_triangle_soup_internal a good name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Putting it in an internal namespace?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is already the case
} | ||
}; | ||
|
||
CGAL_MUTEX map_mutex; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we really have such a global variable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved it inside the class that is using it
Summary of Changes
The PR adds the
do_snap
parameter toautorefine_triangle_soup()
. When set totrue
, the coordinates are rounded to fit indouble
with additional subdivisions, preventing any self-intersections from occurring.Todo
Release Management