-
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. |
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 |
Polygon_mesh_processing/examples/Polygon_mesh_processing/snap_polygon_soup.cpp
Outdated
Show resolved
Hide resolved
..._mesh_processing/include/CGAL/Polygon_mesh_processing/internal/triangle_soup_snap_rounding.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
Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/autorefinement.h
Outdated
Show resolved
Hide resolved
|
||
#include <CGAL/Fraction_traits.h> | ||
#include <CGAL/Lazy_exact_nt.h> | ||
#include <CGAL/Gmpq.h> |
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.
#include <CGAL/Gmpq.h> |
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 <[email protected]>
Co-authored-by: Sebastien Loriot <[email protected]>
Co-authored-by: Sebastien Loriot <[email protected]>
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.Release Management