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

This commit is contained in:
Alex Shvartzkop 2024-06-10 17:32:49 +03:00
parent 1fb19c0d81
commit b34dbf58c5
1 changed files with 7 additions and 3 deletions

View File

@ -1879,10 +1879,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 )
{