Skip to content
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

PMP::isotropic_remeshing() - add NP allow move functor #8150

Conversation

janetournois
Copy link
Member

Summary of Changes

The function tangential_relaxation() has a named parameter called allow_move_functor that enables the user to prevent and cancel some vertex moves.

With this PR, it is now possible to use the same parameter for the relaxation steps of CGAL::Polygon_mesh_processing::isotropic_remeshing()

Release Management

this NP exists in tangential_relaxation() and we want to be able to
use it in the relaxation step, from the named parameters of isotropic_remeshing()
@janetournois janetournois force-pushed the PMP-isotropic_remeshing_with_allow_move_functor-jtournois branch from b32982c to 96d8e1a Compare April 18, 2024 11:01
@janetournois
Copy link
Member Author

To solve #8134, we can think of a smart functor that would prevent self-intersections from being introduced by the relaxation step

@sloriot
Copy link
Member

sloriot commented May 6, 2024

Successfully tested in CGAL-6.0-Ic-235

@lrineau lrineau self-assigned this May 8, 2024
@lrineau lrineau added the rm only: ready for master For the release team only: that indicates that a PR is about to be merged in 'master' label May 8, 2024
@lrineau lrineau merged commit 02ad5d6 into CGAL:master May 15, 2024
9 checks passed
@lrineau lrineau linked an issue May 16, 2024 that may be closed by this pull request
@lrineau lrineau deleted the PMP-isotropic_remeshing_with_allow_move_functor-jtournois branch May 16, 2024 10:29
@lrineau lrineau removed the rm only: ready for master For the release team only: that indicates that a PR is about to be merged in 'master' label May 16, 2024
@lrineau
Copy link
Member

lrineau commented May 16, 2024

To solve #8134, we can think of a smart functor that would prevent self-intersections from being introduced by the relaxation step

Should we close the issue #8134, how that this PR is merged, or leave it open? Because it seems the actual solution to #8134 is

@janetournois
Copy link
Member Author

I will post a possible functor in the issue soon!
Thanks for assigning it to me

* \cgalParamNBegin{allow_move_functor}
* \cgalParamDescription{A function object used to determinate if a vertex move should
* be allowed or not during the relaxation step.}
* \cgalParamType{Unary functor that provides `bool operator()(vertex_descriptor v, Point_3 src, Point_3 tgt)`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, the sentence itself contradicts the word "Unary" (that would take one parameter). That is not a unary functor.

Oops

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Isotropic remeshing creates self intersections
3 participants