Add safety offset to thin wall regions to prevent overlapping geometry and corrupt Voronoi diagram

This commit is contained in:
Alessandro Ranellucci committed 2014-03-05 00:45:17 +01:00
1 parent e1f93fd112
commit 4a894b1e20
2 files changed
+3 -4

No files matched your search

+1 -1
View File
@@ -237,7 +237,7 @@ MedialAxis::is_valid_edge(const VD::edge_type& edge) const
// if we only process segments representing closed loops, none if the
// infinite edges (if any) would be part of our MAT anyway
if (edge.is_secondary() || edge.is_infinite()) return false;
/* If the cells sharing this edge have a common vertex, we're not interested
in this edge. Why? Because it means that the edge lies on the bisector of
two contiguous input lines and it was included in the Voronoi graph because