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

reproject barycenter to avoid boundary shrinking #7633

Merged
merged 1 commit into from
Aug 14, 2023

Conversation

sloriot
Copy link
Member

@sloriot sloriot commented Aug 2, 2023

Fixes #7631

@sloriot sloriot added this to the 5.5.4 milestone Aug 2, 2023

typename GT::Point_3 p1 = gt_project(s1, bary), p2 = gt_project(s2, bary);

bary = squared_distance(p1, bary)<squared_distance(p2,bary)? p1:p2;
Copy link
Member

Choose a reason for hiding this comment

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

compare_squared_distance(p1, p2, bary) == CGAL::SMALLER?

Copy link
Member Author

Choose a reason for hiding this comment

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

I agree but it is more expensive and I don't think it really matters here.

@sloriot
Copy link
Member Author

sloriot commented Aug 4, 2023

Successfully tested in CGAL-6.0-Ic-33

@sloriot sloriot self-assigned this Aug 14, 2023
@sloriot sloriot merged commit c5902cb into CGAL:5.5.x-branch Aug 14, 2023
7 checks passed
@sloriot sloriot deleted the PMP-tgt_smooth_border_shrink branch August 14, 2023 08:21
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.

Border smoothing in isotropic remeshing
3 participants