triangulation: Fracture/Simplify all polygons

Calls the simplify/fracture polygon code on any polygon prior to
tesselation.  This avoids issues with degenerate polygons where the
degenerate points are not sequential.

Fixes: lp:1790534
* https://bugs.launchpad.net/kicad/+bug/1790534
This commit is contained in:
Seth Hillbrand 2018-09-05 15:09:36 -07:00
parent f85b1479aa
commit 73c2297144
1 changed files with 1 additions and 2 deletions

View File

@ -1908,8 +1908,7 @@ void SHAPE_POLY_SET::CacheTriangulation()
SHAPE_POLY_SET tmpSet = *this;
if( tmpSet.HasHoles() )
tmpSet.Fracture( PM_FAST );
tmpSet.Fracture( PM_FAST );
m_triangulatedPolys.clear();