4233 |
kaklik |
1 |
use <celicko.scad> |
|
|
2 |
use <sloupek.scad> |
|
|
3 |
use <lista.scad> |
|
|
4 |
|
|
|
5 |
include <configuration.scad> |
|
|
6 |
|
|
|
7 |
/* |
|
|
8 |
vzdalenost_der=10; |
|
|
9 |
vyska=10; |
|
|
10 |
radidus_hrany=10; |
|
|
11 |
vzdalenost_od_okraje=10; |
|
|
12 |
pocet_der1=10; |
|
|
13 |
pocet_der2=10; |
|
|
14 |
*/ |
|
|
15 |
|
|
|
16 |
board = "ALBASE1521"; /// rozhodnutí pro který typ se budou generovat podklady. |
|
|
17 |
|
|
|
18 |
cube(size = [100, 1000, 1], center = false); |
|
|
19 |
|
|
|
20 |
|
|
|
21 |
vzdalenost_der = board == "ALBASE1521" ? 10 : 10.16; //rozteč děr mezi sebou |
|
|
22 |
vyska = board == "ALBASE1521" ? 60 : 60 ; //vyska celeho sloupku |
|
|
23 |
radidus_hrany = board == "ALBASE1521" ? 5 : 5; //radius zaobleni sloupku |
|
|
24 |
|
|
|
25 |
//--------------------------------------------------- |
|
|
26 |
//parametry lišty |
|
|
27 |
|
|
|
28 |
vzdalenost_od_okraje = 10; //vzdalenost stredu upevnovaci diry od kraje desky |
|
|
29 |
|
|
|
30 |
//malá list |
|
|
31 |
pocet_der1 = 10; //pocet der pres ktere je lista, ponížené o 1 |
|
|
32 |
|
|
|
33 |
//velká list |
|
|
34 |
pocet_der2 = 14; //pocet ter pres ktere je lista ponížené o 1 */ |
|
|
35 |
|
|
|
36 |
/* |
|
|
37 |
if (board == "ALBASE1115") //Konfigurace pro malou aldesku. |
|
|
38 |
{ |
|
|
39 |
|
|
|
40 |
|
|
|
41 |
vzdalenost_der = 10.16; //rozteč děr mezi sebou |
|
|
42 |
|
|
|
43 |
|
|
|
44 |
vyska = 60; //vyska celeho sloupku |
|
|
45 |
radidus_hrany = 5; //radius zaobleni sloupku |
|
|
46 |
|
|
|
47 |
|
|
|
48 |
//--------------------------------------------------- |
|
|
49 |
//parametry lišty |
|
|
50 |
|
|
|
51 |
vzdalenost_od_okraje = 8.88; //vzdalenost stredu upevnovaci diry od kraje desky |
|
|
52 |
|
|
|
53 |
//malá list |
|
|
54 |
pocet_der1 = 10; //pocet der pres ktere je lista, ponížené o 1 |
|
|
55 |
|
|
|
56 |
//velká list |
|
|
57 |
pocet_der2 = 14; //pocet ter pres ktere je lista ponížené o 1 |
|
|
58 |
} |
|
|
59 |
*/ |
|
|
60 |
|
|
|
61 |
|
|
|
62 |
translate([50,0,0]) |
|
|
63 |
celicko (vyska,zapust1,vule_vysky_celicka,delka_celicka,tloustka_celicka,vule_tlousky); |
|
|
64 |
|
|
|
65 |
|
|
|
66 |
translate([0,0,0]) |
|
|
67 |
sloupek (vyska,zapust1,vzdalenost_der,vzdalenost_od_okraje,vzdalenost_od_diry,radidus_hrany,prumer_sroubu,prumer_matice,vyska_matice,posuv_dorazu,matice_sila_materialu); |
|
|
68 |
|
|
|
69 |
//lista mala |
|
|
70 |
translate([0,-100,0]) |
|
|
71 |
lista (vzdalenost_der,pocet_der1,vzdalenost_od_okraje,vzdalenost_od_diry,vzdalenost_1,vzdalenost_2, zapust,vyska_listy,tloustka_celicka,sirka_materialu,vyska_hlavy,prumer_hlavy,prumer_sroubu,prumer_matice,vyska_matice,posuv_dorazu,matice_sila_materialu); |
|
|
72 |
|
|
|
73 |
//lista velka |
|
|
74 |
translate([0,-120,0]) |
4231 |
jacho |
75 |
lista (vzdalenost_der,pocet_der2,vzdalenost_od_okraje,vzdalenost_od_diry,vzdalenost_1,vzdalenost_2, zapust,vyska_listy,tloustka_celicka,sirka_materialu,vyska_hlavy,prumer_hlavy,prumer_sroubu,prumer_matice,vyska_matice,posuv_dorazu,matice_sila_materialu); |