Skip to content

Add parameter erase_even_duplicates to PMP::repair_polygon_soup#9373

Open
LeoValque wants to merge 11 commits intoCGAL:mainfrom
LeoValque:PMP-erase_even_duplicates
Open

Add parameter erase_even_duplicates to PMP::repair_polygon_soup#9373
LeoValque wants to merge 11 commits intoCGAL:mainfrom
LeoValque:PMP-erase_even_duplicates

Conversation

@LeoValque
Copy link
Contributor

@LeoValque LeoValque commented Mar 11, 2026

Summary of Changes

Add erase_even_duplicates parameter to PMP::repair_polygon_soup(). If set to true and an even number of polygons are duplicates, all duplicates are removed instead of keeping one.

This option is useful when transforming a manifold mesh may pinch parts of the mesh and create duplicate faces. Removing duplicates in pairs guarantees that non-manifold edges have an even number of incident faces, which helps restore a consistent mesh structure without creating holes.

Release Management

@LeoValque
Copy link
Contributor Author

/build:v0

@github-actions
Copy link

The documentation is built. It will be available, after a few minutes, here: https://cgal.github.io/9373/v0/Manual/index.html

@sloriot
Copy link
Member

sloriot commented Mar 12, 2026

Maybe you want to add a test to ensure the behavior is not broken at some point.

@LeoValque LeoValque self-assigned this Mar 12, 2026
@MaelRL MaelRL added this to the 6.2-beta milestone Mar 12, 2026
@MaelRL MaelRL added Not yet approved The feature or pull-request has not yet been approved. Small feature CHANGES.md not updated Ready to be tested labels Mar 12, 2026
@afabri
Copy link
Member

afabri commented Mar 16, 2026

Please write a small feature, and cross link.

@afabri afabri changed the title Add erase even duplicates parameter to PMP::repair_polygon_soup Add parameter erase_even_duplicates to PMP::repair_polygon_soup Mar 16, 2026
Co-authored-by: Andreas Fabri <andreas.fabri@geometryfactory.com>
@LeoValque
Copy link
Contributor Author

/build:v1

@github-actions
Copy link

There was an error while building the doc:

/home/runner/work/cgal/cgal/PMP_Mesh_repair/include/CGAL/Polygon_mesh_processing/repair_polygon_soup.h:918: warning: Found unknown command '\cgalParamWarning'
/home/runner/work/cgal/cgal/PMP_Mesh_repair/include/CGAL/Polygon_mesh_processing/repair_polygon_soup.h:1164: warning: Found unknown command '\cgalParamWarning'

https://github.com/CGAL/cgal/actions/runs/23140566082

@LeoValque
Copy link
Contributor Author

/force-build:v1

@github-actions
Copy link

The documentation is built. It will be available, after a few minutes, here: https://cgal.github.io/9373/v1/Manual/index.html

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.

4 participants