From 76cb15f5450cfa1a760a8d61b8fa32196dbf52d5 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Tue, 18 Apr 2023 16:46:59 +0100 Subject: [PATCH] Trim VRML export layers to board outline. Fixes https://gitlab.com/kicad/code/kicad/issues/14557 --- pcbnew/exporters/exporter_vrml.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/pcbnew/exporters/exporter_vrml.cpp b/pcbnew/exporters/exporter_vrml.cpp index 8f68e4a28f..e02f571832 100644 --- a/pcbnew/exporters/exporter_vrml.cpp +++ b/pcbnew/exporters/exporter_vrml.cpp @@ -427,6 +427,7 @@ void EXPORTER_PCB_VRML::ExportStandardLayers() outlines.RemoveAllContours(); m_board->ConvertBrdLayerToPolygonalContours( pcb_layer[lcnt], outlines ); + outlines.BooleanIntersection( m_pcbOutlines, SHAPE_POLY_SET::PM_FAST ); outlines.Fracture( SHAPE_POLY_SET::PM_FAST ); ExportVrmlPolygonSet( vrmllayer[lcnt], outlines );