mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 09:17:52 -06:00
Export STL
This commit is contained in:
parent
d03925a18d
commit
2a067ae41f
2 changed files with 52 additions and 5 deletions
|
@ -58,6 +58,14 @@ sub BUILD {
|
|||
}
|
||||
}
|
||||
|
||||
sub clone {
|
||||
my $self = shift;
|
||||
return (ref $self)->new(
|
||||
vertices => [ map [ @$_ ], @{$self->vertices} ],
|
||||
facets => [ map [ @$_ ], @{$self->facets} ],
|
||||
);
|
||||
}
|
||||
|
||||
sub _facet_edges {
|
||||
my $self = shift;
|
||||
my ($facet_id) = @_;
|
||||
|
@ -284,7 +292,7 @@ sub move {
|
|||
|
||||
# transform vertex coordinates
|
||||
foreach my $vertex (@{$self->vertices}) {
|
||||
$vertex->[$_] += $shift[$_] for X,Y,Z;
|
||||
$vertex->[$_] += $shift[$_] || 0 for X,Y,Z;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue