From b34dbf58c5e29140af3b4c8ae45a8c95e55a16d8 Mon Sep 17 00:00:00 2001 From: Alex Shvartzkop Date: Mon, 10 Jun 2024 17:32:49 +0300 Subject: [PATCH] Altium PCB import: don't add thickness to Solid style fills. --- pcbnew/pcb_io/altium/altium_pcb.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pcbnew/pcb_io/altium/altium_pcb.cpp b/pcbnew/pcb_io/altium/altium_pcb.cpp index efa432624d..b2a86e59b1 100644 --- a/pcbnew/pcb_io/altium/altium_pcb.cpp +++ b/pcbnew/pcb_io/altium/altium_pcb.cpp @@ -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 ) {