Comments are now disabled by default, new --gcode-comments option to enable them

This commit is contained in:
Alessandro Ranellucci 2011-12-14 19:49:21 +01:00
parent 3d213069a6
commit d346bc02cc
5 changed files with 13 additions and 5 deletions

View File

@ -95,8 +95,9 @@ The author is Alessandro Ranellucci (me).
(+/-, default: 0)
--gcode-arcs Use G2/G3 commands for native arcs (experimental, not supported
by all firmwares)
--g0 Use G0 commands for retraction (experimenta, not supported by all
--g0 Use G0 commands for retraction (experimental, not supported by all
firmwares)
--gcode-comments Make GCODE verbose by adding comments (default: no)
Filament options:
--filament-diameter Diameter in mm of your raw filament (default: 3)
@ -132,7 +133,7 @@ The author is Alessandro Ranellucci (me).
--solid-layers Number of solid layers to do for top/bottom surfaces
(range: 1+, default: 3)
--fill-density Infill density (range: 0-1, default: 0.4)
--fill-angle Infill angle in degrees (range: 0-90, default: 0)
--fill-angle Infill angle in degrees (range: 0-90, default: 45)
--fill-pattern Pattern to use to fill non-solid layers (default: rectilinear)
--solid-fill-pattern Pattern to use to fill solid layers (default: rectilinear)
--start-gcode Load initial gcode from the supplied file. This will overwrite
@ -144,7 +145,7 @@ The author is Alessandro Ranellucci (me).
Retraction options:
--retract-length Length of retraction in mm when pausing extrusion
(default: 1)
--retract-speed Speed for retraction in mm/sec (default: 40)
--retract-speed Speed for retraction in mm/sec (default: 30)
--retract-restart-extra
Additional amount of filament in mm to push after
compensating retraction (default: 0)

View File

@ -41,6 +41,7 @@ our $extrusion_axis = 'E';
our $z_offset = 0;
our $gcode_arcs = 0;
our $g0 = 0;
our $gcode_comments = 0;
# filament options
our $filament_diameter = 3; # mm

View File

@ -46,6 +46,11 @@ our $Options = {
cli => 'g0',
type => 'bool',
},
'gcode_comments' => {
label => 'Verbose GCODE (comments)',
cli => 'gcode-comments',
type => 'bool',
},
# filament options
'filament_diameter' => {

View File

@ -292,7 +292,7 @@ sub _Gx {
$gcode .= sprintf " %s%.5f", $Slic3r::extrusion_axis, $self->extrusion_distance;
}
$gcode .= sprintf " ; %s", $comment if $comment;
$gcode .= sprintf " ; %s", $comment if $comment && $Slic3r::gcode_comments;
return "$gcode\n";
}

View File

@ -100,8 +100,9 @@ Usage: slic3r.pl [ OPTIONS ] file.stl
(+/-, default: $Slic3r::z_offset)
--gcode-arcs Use G2/G3 commands for native arcs (experimental, not supported
by all firmwares)
--g0 Use G0 commands for retraction (experimenta, not supported by all
--g0 Use G0 commands for retraction (experimental, not supported by all
firmwares)
--gcode-comments Make GCODE verbose by adding comments (default: no)
Filament options:
--filament-diameter Diameter in mm of your raw filament (default: $Slic3r::filament_diameter)