Recent changes made Slic3r less tolerant with dirty STL files. Now we are able again to slice Prusa parts. #16

This commit is contained in:
Alessandro Ranellucci 2011-12-04 19:10:43 +01:00
parent eb64cc4965
commit b79ae44e3d
2 changed files with 34 additions and 22 deletions

View file

@ -38,7 +38,7 @@ use constant MIN => 0;
use constant MAX => 1;
our $parallel_degrees_limit = abs(deg2rad(3));
our $epsilon = 1E-6;
our $epsilon = 1E-4;
sub epsilon () { $epsilon }
sub scale ($) { $_[0] / $Slic3r::resolution }
@ -212,7 +212,7 @@ sub polyline_lines {
my @lines = ();
my $last_point;
foreach my $point (@$polygon) {
push @lines, [ $last_point, $point ] if $last_point;
push @lines, Slic3r::Line->new($last_point, $point) if $last_point;
$last_point = $point;
}