Open SasaKaranovic opened 1 year ago
I was about to make the same PR, however I think it's beneficial to retain the original functionality - keep the definitions at the top (FILE_NAME, CONE_ANGLE etc) and use those as the default parameter to the argparser. That keeps the original workflow unchanged
Added
requirements.txt
to allow end users to install all dependencies usingpip install -r requirements.txt
-h
to list available options and their descriptionModified
argparse
and accept command line argumentsHow to install script dependencies
Run
pip install -r requirements.txt
(assuming you have Python and PIP installed)How to run the script
Transform
Transform
input.stl
STL file and save output totransformed
folder. Use angle of 16 degrees and run 1 iteration. Default isoutward
transformation.Example:
Transformation_STL_var_angle.py --file input.stl --output transformed --angle 16 --iterations 1
Back transform GCode
Back transform
test_transformed_outward_16deg_0.8n_0.55mm_PETG_MK3S_32m.gcode
and save totransformed
folder. Use filename to detect transformation parameters.Example:
Transformation_STL_var_angle.py --file test_transformed_outward_16deg_0.8n_0.55mm_PETG_MK3S_32m.gcode --output transformed
Alternatively you could also specify angle and direction via command line parameters.