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

Update detect_features.h #8765

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

Conversation

Dhruv-Sharma01
Copy link

Summary of Changes

This commit addresses a bug in the detect_vertex_incident_patches function of the Polygon Mesh Processing package (file: Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/detect_features.h). The original implementation only processed vertices that were incident to feature edges, leaving non-feature vertices without any recorded patch IDs. According to the documentation, every vertex should have a property map entry listing the patch IDs of all incident faces.

To fix this, the conditional check that restricted processing to feature vertices has been removed. Now, every vertex is examined, and its incident patch IDs are correctly gathered.

Release Management

  • Affected package(s): Polygon Mesh Processing
  • Issue(s) solved: fix PMP::detect_vertex_incident_patches #8730
  • Feature/Small Feature: Bug fix for complete patch detection on all vertices
  • Affected file: Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/detect_features.h

Copy link
Author

@Dhruv-Sharma01 Dhruv-Sharma01 left a comment

Choose a reason for hiding this comment

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

Got the approach.

@sloriot sloriot changed the base branch from master to 5.6.x-branch March 3, 2025 19:37
@MaelRL MaelRL added this to the 5.6.3 milestone Mar 4, 2025
@sloriot
Copy link
Member

sloriot commented Mar 7, 2025

Successfully tested in CGAL-6.1-Ic-104

@sloriot sloriot added Not yet approved The feature or pull-request has not yet been approved. Tested and removed Under Testing labels Mar 7, 2025
@Dhruv-Sharma01
Copy link
Author

@sloriot Sir, I have mailed you regarding GSoC'25.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Not yet approved The feature or pull-request has not yet been approved. Pkg::PMP Tested
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PMP::detect_vertex_incident_patches
4 participants