chiark / gitweb /
pattress-boxes-3-cover: LidSide, wip
[reprap-play.git] / pattress-boxes-3-cover.scad
1 // -*- C -*-
2
3 patbox_side = 87 + 0.5;
4 patbox_centres = 60.3;
5
6 lid_box_overlap = 5;
7
8 lid_thinbox_h = 9;
9 lid_fatbox_h = 24;
10 lid_fatbox_switches_h = 6+2;
11
12 total_len = 260;
13 thinbox_len = 87;
14
15 lid_top_wall = 1.5;
16 lid_front_wall = 1.5;
17 lid_side_wall = 1.5;
18
19 // computed
20
21 lid_inner_max_h = lid_box_overlap + lid_fatbox_h + lid_fatbox_switches_h;
22 lid_inner_min_h = lid_box_overlap + lid_fatbox_switches_h;
23
24 lid_inner_kink = [thinbox_len, thinbox_len*2];
25
26 module LidSideProfile(){
27   polygon([[-lid_top_wall,     lid_inner_max_h],
28            [lid_inner_kink[0], lid_inner_max_h],
29            [lid_inner_kink[1], lid_inner_min_h],
30            [total_len,         lid_inner_min_h],
31            [total_len,         -lid_front_wall],
32            [-lid_top_wall,     -lid_front_wall]]);
33 }
34
35 module LidSide(){
36   rotate([90,0,0])
37   linear_extrude(height= lid_side_wall)
38     LidSideProfile();
39 }
40
41 LidSide();