PHP Filament Length/Weight/Volume Estimator for 4d G-Code by algspd , published Dec 2, 2012Description
This is a PHP translation of "Filament Length/Weight/Volume Estimator for 4d G-Code" (Original Perl code by jag thingiverse.com/thing:15499 )
Run something like "$ php filament_length.php -f cube-20-20-10_export.gcode"
The output is something like:
Filament diameter is 3 mm
Filament density is 1.05 g/cc
Cross sectional area of filament: 0.070685775 cm^2
Total filament: 34.148 cm
Volume: 2.414 cc
Weight: 2.534 g
Use this code however you want. If you find a bug, please tell me.
I cannot use a "more free" license here but please read the code header.
PHP Filament Length/Weight/Volume Estimator for 4d G-Code by algspd is licensed under "THE BEER-WARE LICENSE" (Revision 42)