New --first-layer-extrusion-width option. #385

This commit is contained in:
Alessandro Ranellucci 2012-06-06 17:29:12 +02:00
parent d412820733
commit 8a031fe501
13 changed files with 117 additions and 76 deletions

View file

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