mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-11-25 13:36:31 +01:00
Cleanup lines resulting from plane intersection before detecting polygons. This allows for more tolerance with dirty models. Performance impact depends on how many layers are detected as dirty. #16 #28
This commit is contained in:
1 parent
fec816b065
commit
c5d5e4d244
10 files changed
+259
-132
No files matched your search
+6
-4
@@ -2,10 +2,7 @@ package Slic3r::Line;
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
use constant A => 0;
|
||||
use constant B => 1;
|
||||
use constant X => 0;
|
||||
use constant Y => 1;
|
||||
use Slic3r::Geometry qw(A B X Y);
|
||||
|
||||
sub new {
|
||||
my $class = shift;
|
||||
@@ -100,4 +97,9 @@ sub midpoint {
|
||||
);
|
||||
}
|
||||
|
||||
sub reverse {
|
||||
my $self = shift;
|
||||
@$self = reverse @$self;
|
||||
}
|
||||
|
||||
1;
|
||||
Reference in new issue
Block a user