From 5ee68aa91619fa0e1ecff06d84d74bdc3722e38c Mon Sep 17 00:00:00 2001 From: Mike Sheldrake Date: Thu, 27 Sep 2012 06:14:54 -0700 Subject: [PATCH] $parallel_degrees_limit decreased, 3 to 0.1, #704 Geometry::lines_parallel() test used for collapsing adjacent colinear lines was too loose in testing for colinearity, because of this constant setting. Gradualy curving and high-res outer perimiters would over-simplify into straight lines. --- lib/Slic3r/Geometry.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Slic3r/Geometry.pm b/lib/Slic3r/Geometry.pm index b5bec3a8d..c89faaf6f 100644 --- a/lib/Slic3r/Geometry.pm +++ b/lib/Slic3r/Geometry.pm @@ -36,7 +36,7 @@ use constant X2 => 2; use constant Y2 => 3; use constant MIN => 0; use constant MAX => 1; -our $parallel_degrees_limit = abs(deg2rad(3)); +our $parallel_degrees_limit = abs(deg2rad(0.1)); sub epsilon () { 1E-4 } sub scaled_epsilon () { epsilon / &Slic3r::SCALING_FACTOR }