tudelft3d / prepair

Automatic repair of single polygons (according to the OGC Simple Features / ISO19107 rules) using a constrained triangulation.
GNU General Public License v3.0
115 stars 24 forks source link

Overlapping constraints #4

Closed kenohori closed 10 years ago

kenohori commented 10 years ago

The CGAL constraint hierarchy doesn't always behave how we want. When we remove a part of a constraint, the number_of_enclosing_constraints() is still 1. This can cause issues when 3 or more constraints overlap.

kenohori commented 10 years ago

Implementing the odd/even rule on constraints is difficult without a great deal of work, so our solution right now only works for some cases. Specific problems to be solved:

This could be solved by correct odd/even counting on constraints, but how?

kenohori commented 10 years ago

The solution: instead of using Constrained_triangulation_plus_2, use a custom insert_constraint() that:

kenohori commented 10 years ago

Needs testing, but implemented in branch improvements-with-ogr