From 1321c8c6afb18a1c59cd01a39f6ccb61878db013 Mon Sep 17 00:00:00 2001 From: Alex Shvartzkop Date: Sun, 19 Nov 2023 14:04:31 +0300 Subject: [PATCH] STEP export: fix an issue when cutting circular holes in zones. --- pcbnew/exporters/step/step_pcb_model.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pcbnew/exporters/step/step_pcb_model.cpp b/pcbnew/exporters/step/step_pcb_model.cpp index ab3e108515..1db53a4cb5 100644 --- a/pcbnew/exporters/step/step_pcb_model.cpp +++ b/pcbnew/exporters/step/step_pcb_model.cpp @@ -958,6 +958,9 @@ bool STEP_PCB_MODEL::CreatePCB( SHAPE_POLY_SET& aOutline, VECTOR2D aOrigin ) cutArgs.Append( shape ); BRepAlgoAPI_Cut cut; + + // This helps cutting circular holes in zones where a hole is already cut in Clipper + cut.SetFuzzyValue( 0.0005 ); cut.SetArguments( cutArgs ); cut.SetTools( holelist );