-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 _2_screw (){
- //measured with calipers
- screw_length = 8;
- thread_radius = 2.17 / 2 - 0.1; // subtract 0.1 to make squeeze fit
- head_height = 1.8;
- head_radius = 4.1 / 2;
- cylinder(r = thread_radius, h = screw_length);
- cylinder(r = head_radius, h = head_height);}
-
-module caster_deck_interlock_solid(){
- translate([-1, standoff_radius - 2.1, 0]){
- cube([2, 2, standoff_height]);}
- translate([-1, -standoff_radius + 0.1, 0]){
- cube([2, 2, standoff_height]);}}
-
-module caster_deck_interlock_hole(){
- translate([0, standoff_radius - 1, -0.1]){
- cube([2.5, 2.5, standoff_height], center = true);}
- translate([0, -standoff_radius + 1, -0.1]){
- cube([2.5, 2.5, standoff_height], center = true);}}
-
-module caster_standoff_deck_side(){
- difference(){
- cylinder(h = standoff_height - caster_flange_height,
- r = standoff_radius);
- translate([0, 0, standoff_height - caster_flange_screw_length * 1.1 + 0.1])
- scale([1, 1, 1.1])
- caster_flange_screws();
- translate([0, 0, standoff_height - (caster_flange_height + nut_height)])
- nuts();
- translate([0, 0, standoff_height]){
- // make hole to get to screw head depth
- cylinder(r = 4.1 / 2, h = 3, center = true);
- translate([0, 0, -0.7])
- rotate([180, 0, 0])
- _2_screw(r = 0.5, h = 5);}}
+module ball_holder(){
+ gap = wall_thickness * 4;
+ floor = wall_thickness;
+ difference (){
+ cylinder(r = holder_radius, h = holder_height + floor);
+ translate([0, 0, ball_radius + wall_thickness + floor]){
+ sphere(r = ball_radius);}
+ translate([0, 0, holder_height / 2 + wall_thickness + floor]){
+ cube([holder_diameter + 0.1, gap, holder_height],
+ center = true);}}}
+
+module caster_standoff(){
+ cylinder(h = standoff_height,
+ r = standoff_radius);