chiark / gitweb /
c63451221fe15585c6777e0826934c433dd447be
[reprap-play.git] / tablet-stand.scad
1 // -*- C -*-
2
3 whole_depth = 90;
4 whole_width = 120;
5
6 antifoot_width = 15;
7 antifoot_height = 15;
8 antifoot_slope = 1.0;
9 antifoot_depth = 10;
10 antifoot_base = 8;
11 antifoot_front = 5;
12
13 antifoot_back = antifoot_depth + antifoot_height/antifoot_slope;
14
15 module AntiFoot(){
16   translate([-antifoot_front-antifoot_back, antifoot_width/2, 0])
17     rotate([90,0,0])
18     translate([antifoot_front, antifoot_base, 0])
19     linear_extrude(height=antifoot_width)
20     polygon([[-antifoot_front, -antifoot_base],
21            [-antifoot_front,  antifoot_height],
22            [0,               antifoot_height],
23            [0,               0],
24            [antifoot_depth,  0],
25            [antifoot_back, antifoot_height],
26            [antifoot_back, -antifoot_base]]);
27 }
28
29 module LeftLeg(){
30   effective_depth = whole_depth - antifoot_back;
31   translate([-effective_depth, -whole_width/2, 0])
32     AntiFoot();
33 }
34
35 module RightLeg(){
36   mirror([0,1,0]) LeftLeg();
37 }
38
39 module Stand(){
40   LeftLeg();
41   RightLeg();
42 }
43
44 Stand();