Allow perimeters = 0. #282

This commit is contained in:
Alessandro Ranellucci 2012-03-26 11:32:59 +02:00
parent 7a4b43f8c5
commit bf964b5273
4 changed files with 3 additions and 7 deletions

View File

@ -143,7 +143,7 @@ The author is Alessandro Ranellucci (me).
Infill every N layers (default: 1)
Print options:
--perimeters Number of perimeters/horizontal skins (range: 1+,
--perimeters Number of perimeters/horizontal skins (range: 0+,
default: 3)
--solid-layers Number of solid layers to do for top/bottom surfaces
(range: 1+, default: 3)

View File

@ -554,7 +554,7 @@ sub validate {
# --perimeters
die "Invalid value for --perimeters\n"
if $Slic3r::perimeters < 1;
if $Slic3r::perimeters < 0;
# --solid-layers
die "Invalid value for --solid-layers\n"

View File

@ -11,10 +11,6 @@ sub make_perimeter {
my ($layer) = @_;
Slic3r::debugf "Making perimeters for layer %d\n", $layer->id;
# at least one perimeter is required
die "Can't slice object with no perimeters!\n"
if $Slic3r::perimeters == 0;
# this array will hold one arrayref per original surface (island);
# each item of this arrayref is an arrayref representing a depth (from outer
# perimeters to inner); each item of this arrayref is an ExPolygon:

View File

@ -161,7 +161,7 @@ Usage: slic3r.pl [ OPTIONS ] file.stl
Infill every N layers (default: $Slic3r::infill_every_layers)
Print options:
--perimeters Number of perimeters/horizontal skins (range: 1+,
--perimeters Number of perimeters/horizontal skins (range: 0+,
default: $Slic3r::perimeters)
--solid-layers Number of solid layers to do for top/bottom surfaces
(range: 1+, default: $Slic3r::solid_layers)