Always return simplified polygons
Clipper can handle complex input polygons but we will sometimes struggle dealing with outputs from the inflate routine that have degenerate or overlapping points. Calling Simplify after the inflate keeps our polygons easier to handle Fixes https://gitlab.com/kicad/code/kicad/issues/11036
This commit is contained in:
@@ -717,8 +717,8 @@ void SHAPE_POLY_SET::BooleanIntersection( const SHAPE_POLY_SET& a, const SHAPE_P
|
||||
void SHAPE_POLY_SET::InflateWithLinkedHoles( int aFactor, int aCircleSegmentsCount,
|
||||
POLYGON_MODE aFastMode )
|
||||
{
|
||||
Simplify( aFastMode );
|
||||
Inflate( aFactor, aCircleSegmentsCount );
|
||||
Simplify( aFastMode );
|
||||
Fracture( aFastMode );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user