Trim VRML export layers to board outline.

Fixes https://gitlab.com/kicad/code/kicad/issues/14557
This commit is contained in:
Jeff Young 2023-04-18 16:46:59 +01:00
parent 4f9e754a51
commit 76cb15f545
1 changed files with 1 additions and 0 deletions

View File

@ -427,6 +427,7 @@ void EXPORTER_PCB_VRML::ExportStandardLayers()
outlines.RemoveAllContours(); outlines.RemoveAllContours();
m_board->ConvertBrdLayerToPolygonalContours( pcb_layer[lcnt], outlines ); m_board->ConvertBrdLayerToPolygonalContours( pcb_layer[lcnt], outlines );
outlines.BooleanIntersection( m_pcbOutlines, SHAPE_POLY_SET::PM_FAST );
outlines.Fracture( SHAPE_POLY_SET::PM_FAST ); outlines.Fracture( SHAPE_POLY_SET::PM_FAST );
ExportVrmlPolygonSet( vrmllayer[lcnt], outlines ); ExportVrmlPolygonSet( vrmllayer[lcnt], outlines );