maurer.gg
Home
Posts
Models
SCAD Sandbox
Sandbox
gear2
$fn=360; tooth_height=5; tooth_width = 4; module tooth() { linear_extrude(height=10) polygon([ [0,0], [0.25,3], [1.5,5], [2.5,5], [3.75,3], [4,0] ]); } thicc=10; teeth=14; pitch=13; a = pitch / 2; b = teeth * 2; c = 360 / b; d = sin(c); oset = 1; wheel_d = (a / d) * 2 - tooth_height*2 - oset; echo("Wheel diameter: ", wheel_d); difference(){ union(){ cylinder(h=thicc, r=wheel_d/2); for(i=[0:teeth-1]){ rotate([0,0,i*(360/teeth)]) translate([-2,(wheel_d-oset)/2,0]) tooth(); } } cylinder(h=thicc,r=1.6); for(i=[1:4]){ rotate([0,0,i*90]) translate([wheel_d/3.5,0,0]) cylinder(h=thicc, r=8); } }
Render