chiark / gitweb /
tablet-stand: wip, before remove antifoot_overlap
[reprap-play.git] / tablet-stand.scad
1 // -*- C -*-
2
3 antifoot_width = 15;
4 antifoot_height = 15;
5 antifoot_slope = 1.0;
6 antifoot_depth = 10;
7 antifoot_base = 8;
8 antifoot_front = 5;
9 antifoot_overlap = 5;
10
11 module AntiFoot(){
12   antifoot_back = antifoot_depth + antifoot_height/antifoot_slope;
13   translate([-antifoot_front-antifoot_back, antifoot_width/2, 0])
14     rotate([90,0,0])
15     translate([antifoot_front, antifoot_base, 0])
16     linear_extrude(height=antifoot_width)
17     polygon([[-antifoot_front, -antifoot_base],
18            [-antifoot_front,  antifoot_height],
19            [0,               antifoot_height],
20            [0,               0],
21            [antifoot_depth,  0],
22            [antifoot_back, antifoot_height],
23            [antifoot_back+antifoot_overlap, antifoot_height],
24            [antifoot_back+antifoot_overlap, -antifoot_base]]);
25 }
26
27 AntiFoot();