RotBotSlicer / Transform

Algorithm for 3D printer with new kinematics
GNU General Public License v3.0
238 stars 49 forks source link

Adding command line useability improvements. #8

Open SasaKaranovic opened 1 year ago

SasaKaranovic commented 1 year ago

Added

Modified

How 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 to transformed folder. Use angle of 16 degrees and run 1 iteration. Default is outward 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 to transformed 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.

packocrayons commented 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