gehäuse.scad
1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
include <board.scad>
module clicker() {
translate([-0.5,19,7]){
cube([1,20,6]);
rotate([90,0,180])
translate([0,0.3,0])
cylinder(r=0.3,$fn=20,h=20);
}
rotate([0,0,90]) translate([-0.5,-65.8,7]){
cube([1,10,6]);
rotate([90,0,180])
translate([0,0.3,0])
cylinder(r=0.3,$fn=20,h=10);
}
rotate([0,0,-90]) translate([-61.9,55.8,7]){
cube([1,10,6]);
rotate([90,0,180])
translate([0,0.3,0])
cylinder(r=0.3,$fn=20,h=10);
}
}
module cutout() {
translate([-0.5,-1.2,-2.5]) cube([66.24,63.1,14.7]);
}
module center() {
translate([-0.5,-0.5,-2.5]) cube([64.34,61.11,10.93]);
}
module protected() {
color([0.8,0,0]) {
center();
minkowski(){
board();
cube([0.2,0.2,0.2], center = true);
}
}
}
module base(){
difference() {
minkowski(){
cutout();
cube([4,4,4], center = true);
}
cutout();
protected();
translate([-10,-10,9.9])cube([100,100,10]);
minkowski(){
clicker();
sphere(d=0.2, center = true);
}
}
/* verschluss einsparungen */
}
module top(){
difference() {
minkowski(){
cutout();
cube([4,4,4], center = true);
}
cutout();
protected();
translate([-10,-10,-10])cube([100,100,20.1]);
}
/* verschluss oben */
clicker();
}
translate([-10,0,10])rotate([0,180,0]) top();
base();