Skip to content

Mesh_3 optimizers - avoid projection to more than one patch - #9876

Merged
sloriot merged 1 commit into
CGAL:6.1.x-branchfrom
janetournois:Mesh_3-fix_multiple_projection-jtournois
Nov 20, 2026
Merged

sloriot merged 1 commit into
CGAL:6.1.x-branchfrom
janetournois:Mesh_3-fix_multiple_projection-jtournois

Conversation

@janetournois

Copy link
Copy Markdown
Member

Summary of Changes

When a vertex is incident to more than one surface patch, projection to the first patch may destroy the corresponding Vertex_handle via update_mesh(vh,pt), leading to an inconsistent, or invalid, vertex, remaining in vertex_to_proj.

With this patch, the vertex is projected only to one patch to avoid inconsistency, and a potential crash.

Release Management

  • Affected package(s): Mesh_3
  • License and copyright ownership: unchanged

projection to the first patch may destroy Vertex_handle via update_mesh(v,p), leading to an invalid
vertex in vertex_to_proj

project only to one patch to avoid inconsistency
@janetournois janetournois added this to the 6.1.4 milestone Nov 19, 2026
@lrineau lrineau changed the title Mesh_3 optimizers - avoir projection to more than one patch Mesh_3 optimizers - avoid projection to more than one patch Nov 20, 2026
@sloriot

sloriot commented Nov 20, 2026

Copy link
Copy Markdown
Member

Successfully tested in CGAL-6.3-Ic-137

@sloriot
sloriot merged commit bba7611 into CGAL:6.1.x-branch Nov 20, 2026
9 checks passed
@sloriot
sloriot deleted the Mesh_3-fix_multiple_projection-jtournois branch November 20, 2026 17:09
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.

2 participants