Rev Author Line No. Line
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  
4017 kaklik 6 mount_hole = 3.6;
4014 kaklik 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])
4017 kaklik 23 cube([x_size, y_size ,4*thickness], center = true); // cut out half of top tip
4014 kaklik 24 }
4017 kaklik 25 cylinder (h = thickness + rim_height, r= mount_hole, $fn=20); // hole for screw head
4014 kaklik 26 translate ([0, 0, -thickness]) // hole for the screw
27 cylinder (h = thickness + rim_height, r= mount_hole/2, $fn=10);
28  
4017 kaklik 29  
4014 kaklik 30 rotate([0,0,-45]) // hole for top part mounting nut
31 translate ([ 0, -x_size/3, thickness/3])
4017 kaklik 32 cube([6, 3, thickness], center = true);
4014 kaklik 33  
34 rotate([90,0,-45]) // hole for top part mounting screw.
4017 kaklik 35 translate ([ 0, 1.8, 0])
4014 kaklik 36 cylinder (h = thickness + rim_height, r= mount_hole/2, $fn=10);
37  
4012 kaklik 38 }
39  
40  
4017 kaklik 41 /*
42  
4014 kaklik 43 translate ([0, 0, 3*thickness]) // separate two parts
4013 kaklik 44  
4017 kaklik 45 rotate([180,0,0]) // hole for top part mounting nut
4014 kaklik 46  
4017 kaklik 47  
4014 kaklik 48 //Top part
49  
50 difference () {
51  
52 rotate([0,0,-45])
53 translate ([0, -3, rim_height/3])
54 cube([x_size, y_size ,thickness + rim_height/4 ], center = true);
55  
56 rotate([90,0,-45])
57 translate ([0, 0, rim_height/3])
58 minkowski() {
59 cube([0.5,3,10]);
60 cylinder(r=1.5,h=1,$fn=50);
61 }
62  
63 wall_thickness = 2;
64  
65 union(){ // copy of bottom part
66 rotate([0,0,45])
67 cube([x_size, y_size ,thickness], center = true);
68 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])
69 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);
70  
71 };
72 }
73  
74