chiark / gitweb /
poster-tube-lid: wip
[reprap-play.git] / poster-tube-lid.scad
1 // -*- C -*-
2
3 main_dia = 71.2 + 0.50;
4 top_thick = 4;
5
6 main_cnr = 4.0;
7
8 rivet_posn = 6.0;
9 rivet_thick = 1.67;
10 rivet_width = 4.15 + 1.0;
11 rivet_tall = 5.51 + 0.49;
12
13 over_rivet = 0.5;
14
15 bayo_interf = 0.75;
16 bayo_behind = 3.5;
17
18 seal_thick = 0.1;
19 seal_pocket = 2.0;
20
21 side_taper = 1.0;
22
23 // calculated
24
25 side_height = rivet_posn + bayo_behind;
26 side_thick = rivet_tall + over_rivet;
27
28 top_z = top_thick + seal_thick;
29
30 $fs=0.5;
31 $fa=5;
32
33 module MainProfile(){
34   main_cnr_pos = [ side_thick, top_z ] - [1,1]*main_cnr;
35   translate(main_cnr_pos){
36     intersection(){
37       difference(){
38         circle(r = main_cnr);
39         circle(r = main_cnr * 0.5);
40       }
41       square([10,10]);
42     }
43   }
44   %polygon([[ -1,                    seal_thick      ],
45            [ -1,                    top_z            ],
46            [ main_cnr_pos[0],       top_z            ],
47            [ side_thick,            main_cnr_pos[1]  ]]);
48 }
49
50 MainProfile();