Pcbnew, D_PAD::buildCustomPadPolygon(): use PM_STRICTLY_SIMPLE instead of PM_FAST in polygon calculation.
It is slightly slower, but avoid any issue in polygon generation.
This commit is contained in:
parent
d09445cf34
commit
689db4f038
|
@ -247,11 +247,11 @@ bool D_PAD::buildCustomPadPolygon( SHAPE_POLY_SET* aMergedPolygon,
|
|||
|
||||
aux_polyset.Simplify( SHAPE_POLY_SET::PM_FAST );
|
||||
|
||||
// Merge all polygons with the initial pad anchot shape
|
||||
// Merge all polygons with the initial pad anchor shape
|
||||
if( aux_polyset.OutlineCount() )
|
||||
{
|
||||
aMergedPolygon->BooleanAdd( aux_polyset, SHAPE_POLY_SET::PM_FAST );
|
||||
aMergedPolygon->Fracture( SHAPE_POLY_SET::PM_FAST );
|
||||
aMergedPolygon->BooleanAdd( aux_polyset, SHAPE_POLY_SET::PM_STRICTLY_SIMPLE );
|
||||
aMergedPolygon->Fracture( SHAPE_POLY_SET::PM_STRICTLY_SIMPLE );
|
||||
}
|
||||
|
||||
return aMergedPolygon->OutlineCount() <= 1;
|
||||
|
|
Loading…
Reference in New Issue