4586 |
jacho |
1 |
use <text/Write.scad> |
|
|
2 |
use <MLAB_logo.scad> |
|
|
3 |
use <sloupek.scad> |
|
|
4 |
use <plbase.scad> |
|
|
5 |
use <bocnice.scad> |
|
|
6 |
include <manufactury_conf.scad> |
|
|
7 |
include <../configuration.scad> |
|
|
8 |
|
|
|
9 |
spodni_kryt(pocet_der1,pocet_der2,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,vyska_bocnice,prekryti_der,tloustka_bocnice); |
|
|
10 |
|
|
|
11 |
//Bočnice |
|
|
12 |
//------------------------------------------------------------ |
|
|
13 |
|
|
|
14 |
|
|
|
15 |
module spodni_kryt(pocet_der1,pocet_der2,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,vyska_bocnice,prekryti_der,tloustka_bocnice){ |
|
|
16 |
|
|
|
17 |
|
|
|
18 |
|
|
|
19 |
|
|
|
20 |
|
|
|
21 |
|
|
|
22 |
|
|
|
23 |
|
|
|
24 |
translate([-((pocet_der2)*vzdalenost_der+2*vzdalenost_od_okraje)/2,-vzdalenost_od_okraje,(vyska_prekryti_spodni+ |
|
|
25 |
vyska_prekryti_vrchni+tloustka_plbase)]) |
|
|
26 |
rotate(a=[180,0,90]) |
|
|
27 |
translate([radidus_hrany,radidus_hrany,0]) |
|
|
28 |
translate([-2*tloustka_bocnice,-2*tloustka_bocnice,0]) |
|
|
29 |
difference () { |
|
|
30 |
|
|
|
31 |
|
|
|
32 |
minkowski() |
|
|
33 |
{ |
|
|
34 |
cube([(pocet_der1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+4*tloustka_bocnice,(pocet_der2)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+4*tloustka_bocnice,vyska_prekryti_spodni+ |
|
|
35 |
vyska_prekryti_vrchni+sila_spodniho_krytu]); // base plastics brick |
|
|
36 |
cylinder(r=radidus_hrany,h=0.1); |
|
|
37 |
} |
|
|
38 |
translate([tloustka_bocnice-tolerance_na_nasunuti,tloustka_bocnice-tolerance_na_nasunuti,-sila_spodniho_krytu]) |
|
|
39 |
minkowski() |
|
|
40 |
{ |
|
|
41 |
|
|
|
42 |
|
|
|
43 |
cube([(pocet_der1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*tloustka_bocnice+2*tolerance_na_nasunuti,(pocet_der2)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*tloustka_bocnice+2*tolerance_na_nasunuti,vyska_prekryti_spodni+ |
|
|
44 |
vyska_prekryti_vrchni+sila_spodniho_krytu+0.2]); // base plastics brick |
|
|
45 |
cylinder(r=radidus_hrany,h=0.1); |
|
|
46 |
} |
|
|
47 |
|
|
|
48 |
|
|
|
49 |
translate([0,0,-vyska_prekryti_spodni-sila_spodniho_krytu]) |
|
|
50 |
difference () { |
|
|
51 |
|
|
|
52 |
|
|
|
53 |
minkowski() |
|
|
54 |
{ |
|
|
55 |
cube([(pocet_der1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+4*tloustka_bocnice,(pocet_der2)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+4*tloustka_bocnice,vyska_prekryti_spodni+ |
|
|
56 |
vyska_prekryti_vrchni+sila_spodniho_krytu]); // base plastics brick |
|
|
57 |
cylinder(r=radidus_hrany,h=0.1); |
|
|
58 |
} |
|
|
59 |
translate([tloustka_bocnice,tloustka_bocnice,-0.1]) |
|
|
60 |
minkowski() |
|
|
61 |
{ |
|
|
62 |
|
|
|
63 |
|
|
|
64 |
cube([(pocet_der1)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*tloustka_bocnice,(pocet_der2)*vzdalenost_der+2*vzdalenost_od_okraje-2*radidus_hrany+2*tloustka_bocnice,vyska_prekryti_spodni+ |
|
|
65 |
vyska_prekryti_vrchni+sila_spodniho_krytu+0.2]); // base plastics brick |
|
|
66 |
cylinder(r=radidus_hrany,h=0.1); |
|
|
67 |
} |
|
|
68 |
|
|
|
69 |
translate([-radidus_hrany+vzdalenost_der/2+tloustka_bocnice+1+prekryti_tolerance/2,-radidus_hrany-0.25,-0.1]) |
|
|
70 |
|
|
|
71 |
cube([(pocet_der1)*vzdalenost_der+2*vzdalenost_od_okraje+4*tloustka_bocnice-vzdalenost_der-2*tloustka_bocnice-2-prekryti_tolerance,(pocet_der2)*vzdalenost_der+2*vzdalenost_od_okraje+4*tloustka_bocnice+0.5,vyska_bocnice+sila_spodniho_krytu+0.2]); |
|
|
72 |
|
|
|
73 |
|
|
|
74 |
translate([-radidus_hrany-0.25,-radidus_hrany+vzdalenost_der/2+tloustka_bocnice+1+prekryti_tolerance/2,-0.1]) |
|
|
75 |
|
|
|
76 |
cube([(pocet_der1)*vzdalenost_der+2*vzdalenost_od_okraje+4*tloustka_bocnice+0.5,(pocet_der2)*vzdalenost_der+2*vzdalenost_od_okraje+4*tloustka_bocnice-vzdalenost_der-2*tloustka_bocnice-2-prekryti_tolerance,vyska_bocnice+sila_spodniho_krytu+0.2]); |
|
|
77 |
|
|
|
78 |
|
|
|
79 |
|
|
|
80 |
|
|
|
81 |
} |
|
|
82 |
|
|
|
83 |
|
|
|
84 |
|
|
|
85 |
} |
|
|
86 |
|
|
|
87 |
|
|
|
88 |
|
|
|
89 |
|
|
|
90 |
|
|
|
91 |
|
|
|
92 |
|
|
|
93 |
|
|
|
94 |
|
|
|
95 |
|
|
|
96 |
|
|
|
97 |
|
|
|
98 |
|
|
|
99 |
|
|
|
100 |
|
|
|
101 |
} |
|
|
102 |
|
|
|
103 |
|