chiark / gitweb /
tablet-stand: wip
[reprap-play.git] / tablet-stand.scad
index cabaa97ca9ca7c2c93f8e4edbba3d8da2adf67f3..dec652afeaa55464800c49d769102eef0b667f50 100644 (file)
@@ -1,14 +1,24 @@
 // -*- C -*-
 
+whole_depth = 90;
+whole_width = 120;
+
 antifoot_width = 15;
 antifoot_height = 15;
 antifoot_slope = 1.0;
 antifoot_depth = 10;
-antifoot_base = 8;
+antifoot_base = 12;
 antifoot_front = 5;
 
+leg_width = 8;
+leg_thick = 8;
+
+stretcher_thick = 5;
+stretcher_width = 8;
+
+antifoot_back = antifoot_depth + antifoot_height/antifoot_slope;
+
 module AntiFoot(){
-  antifoot_back = antifoot_depth + antifoot_height/antifoot_slope;
   translate([-antifoot_front-antifoot_back, antifoot_width/2, 0])
     rotate([90,0,0])
     translate([antifoot_front, antifoot_base, 0])
@@ -20,6 +30,29 @@ module AntiFoot(){
           [antifoot_depth,  0],
           [antifoot_back, antifoot_height],
           [antifoot_back, -antifoot_base]]);
+  translate([-antifoot_back, 0, 0])
+    cube([stretcher_width, whole_width*0.55, stretcher_width]);
+}
+
+module LeftLeg(){
+  effective_depth = whole_depth - antifoot_back;
+  translate([-effective_depth, -whole_width/2, 0])
+    AntiFoot();
+  multmatrix([[1,0,0,0],
+             [-((whole_width - leg_width)/2 / effective_depth), 1,0,0],
+             [0,0,1,0],
+             [0,0,0,1]])
+    mirror([1,0,0])
+    cube([effective_depth, leg_width, leg_thick]);
+}
+
+module RightLeg(){
+  mirror([0,1,0]) LeftLeg();
+}
+
+module Stand(){
+  LeftLeg();
+  RightLeg();
 }
 
-AntiFoot();
+Stand();