-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathecken.scad
51 lines (46 loc) · 1.72 KB
/
ecken.scad
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
wall = 1.5;
height = 87.5;
width = 20;
screwhole_diam = 8;
baseplate_screw_diam = 2.7;
powerplug_diam = 7.6;
module corner() {
translate([-wall,-wall,0]) cube([width+wall,wall,height]);
rotate([0,0,90]) cube([width,wall,height]);
}
difference() {
corner();
klammer_diam=4;
distance=15;
translate([width/2,0,33]) rotate([90,0,0]) cylinder(d=powerplug_diam, h=wall, $fn=32);
translate([width/2,0,distance]) rotate([90,0,0]) cylinder(d=klammer_diam, h=wall, $fn=32);
translate([width/2,0,height-distance]) rotate([90,0,0]) cylinder(d=klammer_diam, h=wall, $fn=32);
translate([-wall,width/2,distance]) rotate([90,0,90]) cylinder(d=klammer_diam, h=wall, $fn=32);
translate([-wall,width/2,height-distance]) rotate([90,0,90]) cylinder(d=klammer_diam, h=wall, $fn=32);
}
difference() {
linear_extrude(wall) {
polygon([
[0,0],
[width,0],
[0,width]
]);
}
min_dist = width/4;
max_dist = width/3;
translate([min_dist, min_dist, 0]) cylinder(d=screwhole_diam, h=wall, $fn=32);
translate([min_dist, min_dist-screwhole_diam/2, 0]) cube([max_dist-min_dist, screwhole_diam, wall]);
translate([max_dist, min_dist, 0]) cylinder(d=screwhole_diam, h=wall, $fn=32);
translate([max_dist, min_dist, 0]) cylinder(d=screwhole_diam, h=wall, $fn=32);
}
translate([0,0,50]) difference() {
translate([0,0,-width]) linear_extrude(width) {
polygon([
[0,0],
[width,0],
[0,width]
]);
}
rotate([0,0,-45]) translate([0,width*sqrt(2)/2,-wall]) rotate([40,0,0]) translate([-width*2,-width*4,-width*4]) cube([width*4,width*4,width*4]);
translate([7,7,-5]) cylinder(d=baseplate_screw_diam, h=5, $fn=32);
}