Output required filament length and volume to command line and to the gcode file itself

This commit is contained in:
Alessandro Ranellucci 2011-12-20 15:29:15 +01:00
parent 627e1b32e2
commit caf41f07dd
3 changed files with 19 additions and 2 deletions

View file

@ -1,6 +1,7 @@
package Slic3r::Skein;
use Moo;
use Slic3r::Geometry qw(PI);
use Time::HiRes qw(gettimeofday tv_interval);
use XXX;
@ -96,6 +97,8 @@ sub go {
$self->processing_time - int($self->processing_time/60)*60;
# TODO: more statistics!
printf "Filament required: %.1fmm (%.1fcm3)\n",
$print->total_extrusion_length, $print->total_extrusion_volume;
}
1;