From 0d2838518b8a8eddd2a3981c1cbb599b0a522f30 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. (cherry picked from commit b34dbf58c5e29140af3b4c8ae45a8c95e55a16d8) --- 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 809abfc565..ada70e5d53 100644 --- a/pcbnew/pcb_io/altium/altium_pcb.cpp +++ b/pcbnew/pcb_io/altium/altium_pcb.cpp @@ -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 ) {