Triangulation_2: Don't insert segment twice
Summary of Changes
Inserting a segment as constraint more than once may cause problems when there are intersections.
This PR addresses it in the insert_constraints() function.
We might add a bool parameter in the API to document this.
Release Management
- Affected package(s): Triangulation_2
- Issue(s) solved (if any): fix #0000, fix #0000,...
- Feature/Small Feature (if any): https://cgalwiki.geometryfactory.com/CGAL/Members/wiki/Features/Small_Features/Triangulation_2:_remove_duplicates_constraints
- Link to compiled documentation (obligatory for small feature) wrong link name to be changed
- License and copyright ownership:
/build:v0
The documentation is built. It will be available, after a few minutes, here: https://cgal.github.io/6595/v0/Manual/index.html
Successfully tested in CGAL-5.5-Ic-92
I'm fine with the new API introduced. @lrineau Do we need a small feature?
I'm fine with the new API introduced. @lrineau Do we need a small feature?
It is not me to decide. That depends if you want to follow the rules of the CGAL project.
Know that I am opposed to API using bool parameters. It should be a named parameter, or an enum.
This PR seems useful, @afabri what is its status?
ping @afabri