chiark / gitweb /
sewing-table: Leg: wip
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 16 Jun 2017 17:25:30 +0000 (18:25 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 16 Jun 2017 17:25:30 +0000 (18:25 +0100)
sewing-table.scad.m4

index 8ca8ff17bc26b4a2f7342092f0841d15798f7d4b..6362f4e6581c6ffd211408e65b5526129800eb68 100644 (file)
@@ -30,6 +30,12 @@ interlock_fine_lenslop = 1.0;
 
 demo_slop = 0.1;
 
 
 demo_slop = 0.1;
 
+leg_height = 50;
+
+leg_big_dia = 37;
+leg_bot_dia = 15;
+leg_top_flat_z = 5;
+
 // cutout
 
 machine_rear_to_front = 84 + 0.25 - 1.4;
 // cutout
 
 machine_rear_to_front = 84 + 0.25 - 1.4;
@@ -667,6 +673,19 @@ module MachineEnvelope(){
   }
 }
 
   }
 }
 
+module Leg(){ ////toplevel
+  difference(){
+    union(){
+      hull(){
+       mirror([0,0,1])
+         cylinder(r= leg_big_dia/2, height=leg_top_flat_z, $fn=100);
+       translate([0,0, -leg_height])
+         cylinder(r= leg_bot_dia/2, height=1, $fn=100);
+      }
+    }
+  }
+}
+
 function Rectangle_corners(c0, sz) =
   // returns the corners of a rectangle from c0 to c0+sz
   // if sz is positive, the corners are anticlockwise starting with c0
 function Rectangle_corners(c0, sz) =
   // returns the corners of a rectangle from c0 to c0+sz
   // if sz is positive, the corners are anticlockwise starting with c0