Infill refactoring and cleanup complete

This commit is contained in:
Alessandro Ranellucci 2013-03-07 15:47:32 +01:00
parent d928f005e6
commit 36d24ccb0b
7 changed files with 108 additions and 162 deletions

View file

@ -118,7 +118,7 @@ sub subdivide {
# returns false if the polyline is too tight to be printed
sub is_printable {
my $self = shift;
my ($flow) = @_;
my ($width) = @_;
# try to get an inwards offset
# for a distance equal to half of the extrusion width;
@ -129,7 +129,7 @@ sub is_printable {
# detect them and we would be discarding them.
my $p = $self->clone;
$p->make_counter_clockwise;
return $p->offset(-$flow->scaled_width / 2) ? 1 : 0;
return $p->offset(-$width / 2) ? 1 : 0;
}
sub is_valid {