4014 |
kaklik |
1 |
x_size = 20; // horizontal outer size of the aquarium pedestal. |
|
|
2 |
y_size = 20; // |
4013 |
kaklik |
3 |
thickness = 10; // thickness of the pad bellow aquarium. hairs lenght is 12mm. |
4014 |
kaklik |
4 |
rim_height = 7; // height of upper rim for fixing the aquarium in position. |
4012 |
kaklik |
5 |
|
4014 |
kaklik |
6 |
mount_hole = 3.5; |
|
|
7 |
clear = 0.175; |
|
|
8 |
|
|
|
9 |
|
|
|
10 |
// aquarium pad |
|
|
11 |
|
4012 |
kaklik |
12 |
difference () { |
4014 |
kaklik |
13 |
intersection() { |
|
|
14 |
union(){ // bottom part with rim/fixing pin |
|
|
15 |
rotate([0,0,45]) |
|
|
16 |
cube([x_size, y_size ,thickness], center = true); |
|
|
17 |
translate ([sqrt(pow(x_size,2) + pow(x_size,2))/4, sqrt(pow(x_size,2) + pow(x_size,2))/4, thickness/2 + rim_height/2]) |
|
|
18 |
cube([sqrt(pow(x_size,2) + pow(x_size,2))/2, sqrt(pow(x_size,2) + pow(x_size,2))/2, rim_height], center = true); |
4012 |
kaklik |
19 |
|
4014 |
kaklik |
20 |
}; |
|
|
21 |
|
|
|
22 |
rotate([0,0,45]) |
|
|
23 |
cube([x_size, y_size ,4*thickness], center = true); |
|
|
24 |
} |
|
|
25 |
cylinder (h = thickness + rim_height, r= mount_hole, $fn=20); // hole for screw head |
|
|
26 |
|
|
|
27 |
translate ([0, 0, -thickness]) // hole for the screw |
|
|
28 |
cylinder (h = thickness + rim_height, r= mount_hole/2, $fn=10); |
|
|
29 |
|
|
|
30 |
rotate([0,0,-45]) // hole for top part mounting nut |
|
|
31 |
translate ([ 0, -x_size/3, thickness/3]) |
|
|
32 |
cube([5.5, 2.5, thickness], center = true); |
|
|
33 |
|
|
|
34 |
rotate([90,0,-45]) // hole for top part mounting screw. |
|
|
35 |
translate ([ 0, thickness/4, 0]) |
|
|
36 |
cylinder (h = thickness + rim_height, r= mount_hole/2, $fn=10); |
|
|
37 |
|
4012 |
kaklik |
38 |
} |
|
|
39 |
|
|
|
40 |
|
4014 |
kaklik |
41 |
translate ([0, 0, 3*thickness]) // separate two parts |
4013 |
kaklik |
42 |
|
4014 |
kaklik |
43 |
|
|
|
44 |
//Top part |
|
|
45 |
|
|
|
46 |
difference () { |
|
|
47 |
|
|
|
48 |
rotate([0,0,-45]) |
|
|
49 |
translate ([0, -3, rim_height/3]) |
|
|
50 |
cube([x_size, y_size ,thickness + rim_height/4 ], center = true); |
|
|
51 |
|
|
|
52 |
rotate([90,0,-45]) |
|
|
53 |
translate ([0, 0, rim_height/3]) |
|
|
54 |
minkowski() { |
|
|
55 |
cube([0.5,3,10]); |
|
|
56 |
cylinder(r=1.5,h=1,$fn=50); |
|
|
57 |
} |
|
|
58 |
|
|
|
59 |
wall_thickness = 2; |
|
|
60 |
|
|
|
61 |
union(){ // copy of bottom part |
|
|
62 |
rotate([0,0,45]) |
|
|
63 |
cube([x_size, y_size ,thickness], center = true); |
|
|
64 |
translate ([sqrt(pow(x_size,2) + pow(x_size,2))/4 -wall_thickness, sqrt(pow(x_size,2) + pow(x_size,2))/4 -wall_thickness, thickness/2 + rim_height/2]) |
|
|
65 |
cube([sqrt(pow(x_size,2) + pow(x_size,2))/2, sqrt(pow(x_size,2) + pow(x_size,2))/2, rim_height], center = true); |
|
|
66 |
|
|
|
67 |
}; |
|
|
68 |
} |
|
|
69 |
|
|
|
70 |
|