altium: Set smaller zone MinThickness by default to better account for missing design rules

This commit is contained in:
Thomas Pointhuber 2021-02-06 23:45:28 +01:00
parent d444ed80a5
commit 8ee6694c57
1 changed files with 2 additions and 2 deletions

View File

@ -1303,6 +1303,7 @@ void ALTIUM_PCB::ParsePolygons6Data( const CFB::CompoundFileReader& aReader,
const ARULE6* polygonConnectRule = GetRuleDefault( ALTIUM_RULE_KIND::POLYGON_CONNECT ); const ARULE6* polygonConnectRule = GetRuleDefault( ALTIUM_RULE_KIND::POLYGON_CONNECT );
zone->SetMinThickness( IU_PER_MILS ); // TODO: workaround until proper min thickness is set
if( polygonConnectRule != nullptr ) if( polygonConnectRule != nullptr )
{ {
switch( polygonConnectRule->polygonconnectStyle ) switch( polygonConnectRule->polygonconnectStyle )
@ -1590,8 +1591,7 @@ void ALTIUM_PCB::ParseRegions6Data( const CFB::CompoundFileReader& aReader,
rawPolys.AddHole( hole_linechain ); rawPolys.AddHole( hole_linechain );
} }
// The calculation -2 ensures we do not accidentially remove thermal spokes for now. rawPolys.Deflate( zone->GetMinThickness() / 2, 32 );
rawPolys.Deflate( zone->GetMinThickness() / 2 - 2, 32 );
if( zone->HasFilledPolysForLayer( klayer ) ) if( zone->HasFilledPolysForLayer( klayer ) )
rawPolys.BooleanAdd( zone->RawPolysList( klayer ), rawPolys.BooleanAdd( zone->RawPolysList( klayer ),