Fix compilation and test suite
This commit is contained in:
parent
0591eecab7
commit
916a0a0e58
7 changed files with 59 additions and 21 deletions
|
@ -545,4 +545,11 @@ sub transform_mesh {
|
|||
$mesh->translate(@{$self->offset}, 0) unless $dont_translate;
|
||||
}
|
||||
|
||||
sub transform_polygon {
|
||||
my ($self, $polygon) = @_;
|
||||
|
||||
$polygon->rotate($self->rotation, Slic3r::Point->new(0,0)); # rotate around origin
|
||||
$polygon->scale($self->scaling_factor); # scale around origin
|
||||
}
|
||||
|
||||
1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue