Fix compilation and test suite

This commit is contained in:
Alessandro Ranellucci 2013-12-18 16:34:31 +01:00
parent 0591eecab7
commit 916a0a0e58
7 changed files with 59 additions and 21 deletions

View file

@ -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;