-
Notifications
You must be signed in to change notification settings - Fork 0
/
Schlauchpfeife.scad
59 lines (51 loc) · 1.46 KB
/
Schlauchpfeife.scad
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// flue pipe
include <OpenSCAD_support/common.scad>
include <OpenSCAD_support/flue45.scad>
include <OpenSCAD_support/labium45.scad>
include <OpenSCAD_support/pipe_version.scad>
// variables
outerDiameter = 32.2;
innerDiameter = 28;
labiumWidth = 22.4;
outCut = 6.7;
lengthFlue = 30;
outerTube = 11;
innerTube = 8;
minWallThickness = 1.2;
floorThickness = 2;
flueWidth = 0.45;
// proportions, are most likely good like that
tubeInsert = outerTube; // length
pipeInsert = 2*outerTube; // length
height = floorThickness
+ lengthFlue
+ labiumWidth / sqrt(2)
+ 2*tubeInsert;
// calculations, don't touch in production use
ground = (lengthFlue + floorThickness)*-1;
airSupplyX = (ground + tubeInsert) / sqrt(2);
airSupplyY = - outerDiameter/4 - innerDiameter/4 - minWallThickness/2;
soundingLength = height - pipeInsert - floorThickness;
labium_polygon_points =
[[airSupplyY - 4*minWallThickness,0],
[airSupplyY - 4*minWallThickness, outCut*2],
[airSupplyY, outCut],
[airSupplyY + 4*minWallThickness, outCut*2],
[airSupplyY + 4*minWallThickness,0]];
// announcing sounding length
echo(str("the sounding length inside the model in mm: ", soundingLength));
// logic
difference(){
union(){
basicShape15(height);
outer_45_flue();
};
union(){
inner_45_flue();
airSupplySpacer(x=airSupplyX);
labium_cut();
};
};
// version number
vertical_version_number ("Schlauchpfeife");
echo(version = version());