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:
parent
5314ba6440
commit
a24cdcb3f0
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue