clearly comment the shape and placement
authordaniel watson <ozzloy@gmail.com>
Mon, 28 Oct 2013 21:39:31 +0000 (14:39 -0700)
committerdaniel watson <ozzloy@gmail.com>
Mon, 28 Oct 2013 21:39:31 +0000 (14:39 -0700)
caster-standoff.scad

index 21e9fca2d0c66c52f3730fe279a372ee516234df..27d2ba6c351fcef22e8e9a3cf7295b7210c01509 100644 (file)
@@ -100,15 +100,17 @@ module caster_top_half(){
              h = standoff_height * 3 / 4);}}
 
 module caster_bottom_half (){
-  intersection (){
-    caster_standoff();
-    cylinder(r1 = deck_flange_radius * 4 / 3,
-             r2 = 0,
-             h = standoff_height * 3 / 4);}}
+  difference(){
+    intersection (){
+      caster_standoff();
+      cylinder(r1 = deck_flange_radius * 4 / 3,
+                    r2 = 0,
+                    h = standoff_height * 3 / 4);}
+    // leave a little room for glue
+    translate([0, 0, standoff_height * 3 / 4 - 1]) cylinder(r = 2, h = 2);}}
 
+// move the top half and flip it over for printing
 translate([0, deck_flange_radius + standoff_radius + 1, standoff_height]){
   rotate([0, 180, 0]){
     caster_top_half();}}
-difference(){
-  caster_bottom_half();
-  translate([0, 0, standoff_height * 3 / 4 - 1]) cylinder(r = 2, h = 2);}
+caster_bottom_half();