Trim VRML export layers to board outline.
Fixes https://gitlab.com/kicad/code/kicad/issues/14557
This commit is contained in:
parent
4f9e754a51
commit
76cb15f545
|
@ -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 );
|
||||||
|
|
Loading…
Reference in New Issue