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 2c34a08bf1
commit c682d11fa0
1 changed files with 1 additions and 0 deletions

View File

@ -426,6 +426,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 );