
GT2 2mm Gear profile maker
thingiverse
#Introduction The original parametric scad file was impressive, although I found it was probably a bit more complicated than it needed to be. Code reuse is generally a good thing, but not if it comes at the cost of understandability. I think the approach of having a common library file, with the reusable functions, such as "space_teeth" etc makes sense. Then each gear type can be its own module. This is nice because constants specific to that module exist only within that scope. I haven't implemented every gear type (as per the original), however it would be trivial to continue to refactor the original into my pattern. # How To Use The demo project included, will render a grid of incrementing gears ``` scad include <gt2_2mm.scad> ROWS = 3; COLUMNS = 3; MIN_TEETH = 8; SPACING = 5 * ((ROWS * COLUMNS) / 4); INC_STEP = 2; for(n = [0:INC_STEP:ROWS * INC_STEP]){ for (m = [0:INC_STEP:COLUMNS * INC_STEP]){ num_teeth = (m + MIN_TEETH) + (2 * n + MIN_TEETH); echo( "Creating gear with ", num_teeth, "teeth, at position x= ", m, " and y= ", n ); translate([SPACING * m, SPACING * n, 0]) gt2_2mm_gear(num_teeth); } } ```
With this file you will be able to print GT2 2mm Gear profile maker with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on GT2 2mm Gear profile maker.