Fixed screwhole colors for various stepper sizes.

This commit is contained in:
Revar Desmera 2018-12-05 20:38:43 -08:00
parent ec5ed6266d
commit fd500109fb

View file

@ -100,10 +100,11 @@ module nema11_stepper(h=24, shaft=5, shaft_len=20)
rrect(size=[motor_width, motor_width, h], r=2, center=true); rrect(size=[motor_width, motor_width, h], r=2, center=true);
} }
} }
xspread(screw_spacing) color("silver")
yspread(screw_spacing) xspread(screw_spacing)
down(screw_depth/2-0.05) yspread(screw_spacing)
cylinder(r=screw_size/2, h=screw_depth, center=true, $fn=max(12,segs(screw_size/2))); down(screw_depth/2-0.05)
cylinder(r=screw_size/2, h=screw_depth, center=true, $fn=max(12,segs(screw_size/2)));
} }
color([0.4, 0.4, 0.4]) color([0.4, 0.4, 0.4])
translate([0, 0, plinth_height/2]) translate([0, 0, plinth_height/2])
@ -132,10 +133,11 @@ module nema14_stepper(h=24, shaft=5, shaft_len=24)
rrect(size=[motor_width, motor_width, h], r=2, center=true); rrect(size=[motor_width, motor_width, h], r=2, center=true);
} }
} }
xspread(screw_spacing) color("silver")
yspread(screw_spacing) xspread(screw_spacing)
down(screw_depth/2-0.05) yspread(screw_spacing)
cylinder(r=screw_size/2, h=screw_depth, center=true, $fn=max(12,segs(screw_size/2))); down(screw_depth/2-0.05)
cylinder(r=screw_size/2, h=screw_depth, center=true, $fn=max(12,segs(screw_size/2)));
} }
color([0.4, 0.4, 0.4]) color([0.4, 0.4, 0.4])
translate([0, 0, plinth_height/2]) translate([0, 0, plinth_height/2])
@ -164,10 +166,11 @@ module nema17_stepper(h=34, shaft=5, shaft_len=20)
rrect(size=[motor_width, motor_width, h], r=2, center=true); rrect(size=[motor_width, motor_width, h], r=2, center=true);
} }
} }
xspread(screw_spacing) color("silver")
yspread(screw_spacing) xspread(screw_spacing)
down(screw_depth/2-0.05) yspread(screw_spacing)
cylinder(r=screw_size/2, h=screw_depth, center=true, $fn=max(12,segs(screw_size/2))); down(screw_depth/2-0.05)
cylinder(r=screw_size/2, h=screw_depth, center=true, $fn=max(12,segs(screw_size/2)));
} }
color([0.4, 0.4, 0.4]) color([0.4, 0.4, 0.4])
up(plinth_height/2) up(plinth_height/2)