Altium PCB import: don't add thickness to Solid style fills.

(cherry picked from commit b34dbf58c5)
This commit is contained in:
Alex Shvartzkop 2024-06-10 17:32:49 +03:00
parent 82c2bda52b
commit 0d2838518b
1 changed files with 7 additions and 3 deletions

View File

@ -1991,10 +1991,14 @@ void ALTIUM_PCB::ParsePolygons6Data( const ALTIUM_COMPOUND_FILE& aAltiumPcbF
continue;
}
// Altium polygon outlines have thickness, convert it to KiCad's representation.
SHAPE_POLY_SET outline( linechain );
outline.Inflate( elem.trackwidth / 2, CORNER_STRATEGY::CHAMFER_ACUTE_CORNERS, ARC_HIGH_DEF,
true );
if( elem.hatchstyle != ALTIUM_POLYGON_HATCHSTYLE::SOLID )
{
// Altium "Hatched" or "None" polygon outlines have thickness, convert it to KiCad's representation.
outline.Inflate( elem.trackwidth / 2, CORNER_STRATEGY::CHAMFER_ACUTE_CORNERS,
ARC_HIGH_DEF, true );
}
if( outline.OutlineCount() != 1 && m_reporter )
{