Duplication is now performed on generated toolpaths instead of mesh (speed boost). #179

This commit is contained in:
Alessandro Ranellucci 2012-02-19 10:48:58 +01:00
parent 90c6ed3b20
commit e0e2023a5a
4 changed files with 63 additions and 41 deletions

View file

@ -16,6 +16,7 @@ has 'edges_facets' => (is => 'ro', default => sub { [] }); # id => [ $f1_id, $f
use constant MIN => 0;
use constant MAX => 1;
# always make sure BUILD is idempotent
sub BUILD {
my $self = shift;
@ -303,6 +304,7 @@ sub duplicate {
}
}
push @{$self->facets}, @new_facets;
$self->BUILD;
}
sub bounding_box {