mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 07:27:41 -06:00
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:
parent
eb64cc4965
commit
b79ae44e3d
2 changed files with 34 additions and 22 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue