Skirt can be disabled by either setting skirts to 0 or skirt-height to 0

This commit is contained in:
Alessandro Ranellucci 2011-12-16 09:55:13 +01:00
parent 172253cfd7
commit f5eb4f03e1
3 changed files with 4 additions and 3 deletions

View File

@ -434,7 +434,7 @@ sub validate {
# --skirt-height
die "Invalid value for --skirt-height\n"
if $Slic3r::skirt_height < 1;
if $Slic3r::skirt_height < 0;
# legacy with existing config files
$Slic3r::small_perimeter_speed ||= $Slic3r::perimeter_speed;

View File

@ -328,6 +328,7 @@ sub extrude_skirt {
my @points = ();
my @layers = map $self->layer($_), 0..($Slic3r::skirt_height-1);
push @points, map @$_, map $_->p, map @{ $_->slices }, @layers;
return if !@points;
# find out convex hull
my $convex_hull = convex_hull(\@points);

View File

@ -159,10 +159,10 @@ Usage: slic3r.pl [ OPTIONS ] file.stl
--retract-lift Lift Z by the given distance in mm when retracting (default: $Slic3r::retract_lift)
Skirt options:
--skirts Number of skirts to draw (default: $Slic3r::skirts)
--skirts Number of skirts to draw (0+, default: $Slic3r::skirts)
--skirt-distance Distance in mm between innermost skirt and object
(default: $Slic3r::skirt_distance)
--skirt-height Height of skirts to draw (expressed in layers, default: $Slic3r::skirt_height)
--skirt-height Height of skirts to draw (expressed in layers, 0+, default: $Slic3r::skirt_height)
Transform options:
--scale Factor for scaling input object (default: $Slic3r::scale)