Parametric GCode Starter Kit by MaskedRetriever 3d model
3dmdb logo
Thingiverse
Parametric GCode Starter Kit by MaskedRetriever

Parametric GCode Starter Kit by MaskedRetriever

by Thingiverse
Last crawled date: 2 years, 11 months ago
This is a sort of quickstart manual-in-a-script series that will show you how to generate gcode from math using Python and provide a "foot in the door" for more complex parametric prints.
para_01.py:
The hello world of 3D parametric printing, this prints a prism shape by doing nothing more than moving the print head to three points and then raising it one layer.
para_02.py:
Adding trig functions, this script moves from straight lines to circles to print a cylinder.
para_03.py:
In the most advanced example in this pack, the GCode object is given a "rotate" method so that the cross-section of the model can be rotated one step at a time.
I'll make another one of these with more advanced lessons later-- there are a LOT more things that can be done with this than I've shown here!

Tags