pcbnew: Add arc approximation setting to board
This places the arc approximation setting in the kicad_pcb file and uses it for all parts of the board rendering where arcs are converted to segments. This allows the user to customize their speed vs. accuracy tradeoff. The default setting of maximum error of 0.005mm is acceptable for small boards on moderate systems.
This commit is contained in:
@@ -187,7 +187,7 @@ void BRDITEMS_PLOTTER::PlotPad( D_PAD* aPad, COLOR4D aColor, EDA_DRAW_MODE_T aPl
|
||||
const int corner_radius = aPad->GetRoundRectCornerRadius( aPad->GetSize() );
|
||||
TransformRoundChamferedRectToPolygon( polygons, shape_pos, aPad->GetSize(),
|
||||
aPad->GetOrientation(), corner_radius, aPad->GetChamferRectRatio(),
|
||||
aPad->GetChamferPositions(), ARC_HIGH_DEF );
|
||||
aPad->GetChamferPositions(), m_board->GetDesignSettings().m_MaxError );
|
||||
|
||||
if( polygons.OutlineCount() == 0 )
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user