chiark / gitweb /
commitid.scad.pl: make if into a block (nfc)
[reprap-play.git] / fire-blanket-wall-mushroom.scad
1 // -*- C -*-
2
3 fudge=0.15;
4
5 screwrad = 4.5 / 2 + fudge; // xxx check
6 shaftrad = 7.5 / 2 - fudge;
7
8 diskrad = 12.0 / 2 - fudge;
9
10 csinkpart = 0.5;
11
12 shaftlen = 8; // xxx check
13
14 diskthick = 1.5;
15
16 disktaperratio = 2;
17
18 // computed
19
20 disktaperrad = diskrad - diskthick / disktaperratio;
21 totallen = shaftlen + diskthick;
22
23 module SidePlan(){
24   polygon([[-screwrad, 0],
25            [-disktaperrad, 0],
26            [-diskrad, -diskthick],
27            [-shaftrad, -diskthick],
28            [-shaftrad, -totallen],
29            [-screwrad, -totallen]]);
30 }
31
32 module Bush(){
33   rotate_extrude($fn=25, convexity=3){
34     SidePlan();
35   }
36 }
37
38 //SidePlan();
39 rotate([0,180,0])
40   Bush();