4331 |
jacho |
1 |
include <manufactury_conf.scad> |
|
|
2 |
include <../configuration.scad> |
|
|
3 |
use <MLAB_logo.scad> |
|
|
4 |
|
4568 |
jacho |
5 |
sloupek (); |
4564 |
jacho |
6 |
|
|
|
7 |
|
4331 |
jacho |
8 |
//Funkce pro generovani sloupku |
4568 |
jacho |
9 |
module sloupek() { |
|
|
10 |
|
4331 |
jacho |
11 |
difference () { |
4568 |
jacho |
12 |
translate([-(prumer_matice+2*tloustka_bocnice-2*radidus_hrany)/2,-(prumer_matice+2*tloustka_bocnice-2*radidus_hrany)/2,0]) |
|
|
13 |
minkowski() |
|
|
14 |
{ |
|
|
15 |
cube([prumer_matice+2*tloustka_bocnice-2*radidus_hrany,prumer_matice+2*tloustka_bocnice-2*radidus_hrany,vyska_matice+2*tloustka_bocnice]); // base plastics brick |
|
|
16 |
cylinder(r=radidus_hrany,h=0.1); |
|
|
17 |
} |
|
|
18 |
|
|
|
19 |
translate([0,0,vyska_matice+2*tloustka_bocnice+0.1-tloustka_bocnice/2+0.2]) |
|
|
20 |
cylinder((tloustka_bocnice), d=(prumer_sroubu), center=true); |
|
|
21 |
|
|
|
22 |
cylinder((vyska_matice+2*tloustka_bocnice), d=(prumer_sroubu), center=true); |
|
|
23 |
|
|
|
24 |
|
|
|
25 |
//otvor na matici |
|
|
26 |
translate([0,tloustka_bocnice/2-posuv_dorazu/2,(vyska_matice+2*tloustka_bocnice)/2]) |
|
|
27 |
|
|
|
28 |
cube([prumer_matice, prumer_matice+posuv_dorazu+tloustka_bocnice,vyska_matice], center = true); |
|
|
29 |
|
|
|
30 |
} |
4331 |
jacho |
31 |
|
4568 |
jacho |
32 |
difference () { |
|
|
33 |
translate([-(prumer_matice+2*tloustka_bocnice)/2,-(prumer_matice+2*tloustka_bocnice)/2,-vyska_podpery]) |
4331 |
jacho |
34 |
rotate([0, 0, 45]) |
4568 |
jacho |
35 |
|
|
|
36 |
cylinder(vyska_podpery,0,sqrt(2*((prumer_matice+2*tloustka_bocnice)*(prumer_matice+2*tloustka_bocnice))),$fn=4); |
|
|
37 |
|
|
|
38 |
|
|
|
39 |
|
|
|
40 |
|
|
|
41 |
difference () { |
4331 |
jacho |
42 |
|
|
|
43 |
|
|
|
44 |
|
4568 |
jacho |
45 |
translate([-((sqrt(2*((prumer_matice+2*tloustka_bocnice)*(prumer_matice+2*tloustka_bocnice))*2))),-((sqrt(2*((prumer_matice+2*tloustka_bocnice)*(prumer_matice+2*tloustka_bocnice))*2))),-vyska_podpery]) |
|
|
46 |
cube([2*(sqrt(2*((prumer_matice+2*tloustka_bocnice)*(prumer_matice+2*tloustka_bocnice))*2)),2*(sqrt(2*((prumer_matice+2*tloustka_bocnice)*(prumer_matice+2*tloustka_bocnice))*2)),vyska_podpery+0.1]); |
|
|
47 |
|
|
|
48 |
translate([-(prumer_matice+2*tloustka_bocnice-2*radidus_hrany)/2,-(prumer_matice+2*tloustka_bocnice-2*radidus_hrany)/2,-vyska_podpery+0.05]) |
4331 |
jacho |
49 |
|
|
|
50 |
minkowski() |
|
|
51 |
{ |
4568 |
jacho |
52 |
cube([prumer_matice+2*tloustka_bocnice-2*radidus_hrany,prumer_matice+2*tloustka_bocnice-2*radidus_hrany,vyska_podpery+0.01]); // base plastics brick |
4331 |
jacho |
53 |
cylinder(r=radidus_hrany,h=0.1); |
|
|
54 |
} |
|
|
55 |
} |
4568 |
jacho |
56 |
|
|
|
57 |
|
|
|
58 |
|
|
|
59 |
|
|
|
60 |
} |
|
|
61 |
|
|
|
62 |
|
|
|
63 |
|
4331 |
jacho |
64 |
|
4568 |
jacho |
65 |
} |
4331 |
jacho |
66 |
|
|
|
67 |
|
|
|
68 |
|
|
|
69 |
|
|
|
70 |
|
|
|
71 |
|