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() - fix relaxation of constrained vertices #8604

Draft
wants to merge 3 commits into
base: 5.6.x-branch
Choose a base branch
from

Conversation

janetournois
Copy link
Member

Summary of Changes

Constrained vertices, and constrained edges were not properly protected during the smoothing step.

Release Management

Comment on lines 1359 to 1375
bool is_move_allowed(const vertex_descriptor v, const bool relax_constraints) const
{
if (is_constrained(v))
return false;

std::vector<halfedge_descriptor> border_halfedges;
for (halfedge_descriptor h : halfedges_around_target(v, mesh_))
{
if (is_on_patch(h))
continue;
else if (is_on_patch_border(h) && relax_constraints)
continue;
else
return false;
}
return true;
}
Copy link
Member

Choose a reason for hiding this comment

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

border_halfedges, line 1364, does not seem to be used.

@sloriot
Copy link
Member

sloriot commented Nov 14, 2024

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.

3 participants