Don't try to align rectilinear infill if solid, otherwise there will be a gap at one side

This commit is contained in:
Alessandro Ranellucci 2013-07-29 11:05:04 +02:00
parent 51de3ce14f
commit 948b43fe0d
4 changed files with 73 additions and 50 deletions

View file

@ -173,6 +173,14 @@ sub translate {
$self;
}
sub align_to_origin {
my $self = shift;
my $bb = $self->bounding_box;
$self->translate(-$bb->x_min, -$bb->y_min);
$self;
}
sub rotate {
my $self = shift;
$_->rotate(@_) for @$self;