Refinements in gerber placefile writer: allows adding board edge cuts in file.

Use a pad bounding box for footprints having no valid courtyard defined.
Refinement also in Gerber files when plotting oval pads.
This commit is contained in:
jean-pierre charras
2019-11-01 18:12:26 +01:00
parent dc5e8aa609
commit 65bf669387
10 changed files with 267 additions and 53 deletions
+1 -3
View File
@@ -726,9 +726,7 @@ void BRDITEMS_PLOTTER::PlotDrawSegment( DRAWSEGMENT* aSeg )
GBR_METADATA gbr_metadata;
bool isOnCopperLayer = ( m_layerMask & LSET::AllCuMask() ).any();
if( isOnCopperLayer && aSeg->GetLayer() == Edge_Cuts ) // can happens when plotting copper layers
if( aSeg->GetLayer() == Edge_Cuts )
gbr_metadata.SetApertureAttrib( GBR_APERTURE_METADATA::GBR_APERTURE_ATTRIB_EDGECUT );
switch( aSeg->GetShape() )