-
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
Surface_mesh_approximation: Deal with boundary edges #7574
Conversation
chord_max = citr; | ||
dist_max = dist; | ||
} | ||
FT dist_max(0.0); |
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.
unwanted indentation changes I guess
Successfully tested in CGAL-6.0-Ic-20 |
This pull-request was previously marked with the label |
New warnings in Surface_mesh_approximation tests in CGAL-6.0-Ic-25 |
Successfully tested in CGAL-6.0-Ic-33 |
@MaelRL Do you remember why you had set
Not yet approved
|
Because we still have to decide if the API shall also allow to constrain other than boundary vertices. |
This pull-request was previously marked with the label |
@@ -827,9 +840,11 @@ class Variational_shape_approximation { | |||
using parameters::choose_parameter; | |||
|
|||
const FT subdivision_ratio = choose_parameter(get_parameter(np, internal_np::subdivision_ratio), FT(5.0)); | |||
const FT boundary_subdivision_ratio = choose_parameter(get_parameter(np, internal_np::boundary_subdivision_ratio), FT(5.0)); |
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.
In order to be backward compatible we should set boundary_subdivision_ratio
to the value of subdivision_ratio
as default.
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.
@sloriot. Is this a good idea? This somehow assumes an order on named parameters.
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.
This is correct, the variable subdivision_ratio
being initialized before the call to the next get param.
Surface_mesh_approximation/include/CGAL/Variational_shape_approximation.h
Show resolved
Hide resolved
@MaelRL: this PR is marked
Tested
, but also
Not yet approved
|
Summary of Changes
Add a named parameter to distinguish between the approximation error for boundary and non-boundary edges of the input mesh.
Release Management