Rev Author Line No. Line
4593 jacho 1 include <manufactury_conf.scad>
2 include <../configuration.scad>
3 use <MLAB_logo.scad>
4  
5 sloupek ();
6  
7  
8 //Funkce pro generovani sloupku
9 module sloupek() {
10  
11 difference () {
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 }
31  
32 difference () {
33 translate([-(prumer_matice+2*tloustka_bocnice)/2,-(prumer_matice+2*tloustka_bocnice)/2,-vyska_podpery])
34 rotate([0, 0, 45])
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 () {
42  
43  
44  
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])
49  
50 minkowski()
51 {
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
53 cylinder(r=radidus_hrany,h=0.1);
54 }
55 }
56  
57  
58  
59  
60 }
61  
62  
63  
64  
65 }
66  
67  
68  
69  
70  
71