-module caster_flange_screws(){
- translate([standoff_radius, 0, 0])
- cylinder(h = caster_flange_screw_length,
- r = caster_flange_screw_radius);
- translate([-standoff_radius, 0, 0])
- cylinder(h = caster_flange_screw_length,
- r = caster_flange_screw_radius);}
-
-module caster_flange(){
- side_radius = caster_flange_width / 2 - standoff_radius;
- hull(){
- cylinder(h = caster_flange_height, r = standoff_radius);
- translate([standoff_radius, 0, 0])
- cylinder(h = caster_flange_height, r = side_radius);
- translate([-standoff_radius, 0, 0])
- cylinder(h = caster_flange_height, r = side_radius);}}
-
-module nut(size, height){
- width = size/1.75;
- for (r = [-60, 0, 60]) rotate([0,0,r]) cube([width, size, height], true);}
-
-module nuts(){
- translate([standoff_radius, 0, nut_height/2])
- nut(nut_short_side, nut_height + .1);
- translate([-standoff_radius, 0, nut_height/2])
- nut(nut_short_side, nut_height + .1);}
+module ball_holder(){
+ gap = wall_thickness * 4;
+ difference (){
+ cylinder(r = holder_radius, h = holder_height);
+ translate([0, 0, ball_radius + wall_thickness]){
+ sphere(r = ball_radius);}
+ translate([0, 0, holder_height / 2 + wall_thickness]){
+ cube([holder_diameter + 0.1, gap, holder_height],
+ center = true);}}}