Browse Source

Fix circle to segment approximation to 0.02 mm instead of 0.01 mm

(to avoid to long calculation time in fill zone)
pull/5/merge
jean-pierre charras 8 years ago
parent
commit
3fcc84dde3
  1. 3
      pcbnew/board_items_to_polygon_shape_transform.cpp

3
pcbnew/board_items_to_polygon_shape_transform.cpp

@ -59,7 +59,8 @@ static SHAPE_POLY_SET* s_cornerBuffer;
// The max error is the distance between the middle of a segment, and the circle
// for circle/arc to segment approximation.
// Warning: too small values can create very long calculation time in zone filling
double s_error_max = Millimeter2iu( 0.01 );
// 0.05 to 0.01 mm is a reasonable value
double s_error_max = Millimeter2iu( 0.02 );
// This is a call back function, used by DrawGraphicText to draw the 3D text shape:
static void addTextSegmToPoly( int x0, int y0, int xf, int yf )

Loading…
Cancel
Save