-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtelefonlur.scad
More file actions
35 lines (29 loc) · 840 Bytes
/
telefonlur.scad
File metadata and controls
35 lines (29 loc) · 840 Bytes
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
module roundedcylinder(radius, height, r2) {
cylinder(h=height, r=radius);
translate([0, 0, -r2])
cylinder(h=r2, r=radius-r2);
for (i=[0:359]) {
translate([(radius-r2)*sin(i), (radius-r2)*cos(i), 0])
sphere(r2);
}
}
module roundedcube(x,y,z,r2) {
cube([x, y, z]);
translate([0,r2,-r2])
cube([x,y-2*r2,r2]);
translate([0,r2,0])
rotate(90, [0,1,0]) cylinder(r=r2,h=x);
translate([0,y-r2,0])
rotate(90, [0,1,0]) cylinder(r=r2,h=x);
}
module telefonlur(length, width, height1, height2)
{
roundedcube(length, width, height1, width/10);
translate([0,width/2,0]) {
roundedcylinder(width/2, height2, width/10);
}
translate([length,width/2,0]) {
roundedcylinder(width/2, height2, width/10);
}
}
telefonlur(120, 50, 5, 20);