From 3fcc84dde33a107336e8dac84d40c09475ddf6c2 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Fri, 9 Mar 2018 13:36:54 +0100 Subject: [PATCH] Fix circle to segment approximation to 0.02 mm instead of 0.01 mm (to avoid to long calculation time in fill zone) --- pcbnew/board_items_to_polygon_shape_transform.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pcbnew/board_items_to_polygon_shape_transform.cpp b/pcbnew/board_items_to_polygon_shape_transform.cpp index 085ffbc3bc..278b68f4c3 100644 --- a/pcbnew/board_items_to_polygon_shape_transform.cpp +++ b/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 )