-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanalog4--sides-v1-2.scad
42 lines (33 loc) · 1.25 KB
/
analog4--sides-v1-2.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
/*
module 3d_layout() {
translate ([0,-180,0]) side();
//rotate (a=90,v=[0,1,0]) {translate ([-160,0,0]) side();} //
rotate ([90,63,90]) {translate ([-91,0,0]) side();} //
rotate ([90,63,90]) {translate ([-91,0,500]) side();} //
//mirror ([-1,1,0]) translate ([0,150,0]) side();
}
3d_layout();
*/
// 2d
CircleFragments = 10;
module 2d_layout() {
rotate (a=0,v=[0,0,0]) translate([0,10,0]) projection(cut = true) side();
}
2d_layout();
module side() {
difference() {
// translate ([0,0,0]) color("lightgrey") cube ([120,200,8]) ;
hull () {
translate ([10,0,0]) cylinder (r =10,h=8,$fn=30);
translate ([180,180,0]) cylinder (r =10,h=8,$fn=30 );
translate ([10,180,0]) cylinder (r =10,h=8,$fn=30 );
translate ([80,0,0]) cylinder (r =10,h=8,$fn=30 );
}
hull () {
translate ([26,15,0]) cylinder(r=3/2,h=8,$fn=30);
translate ([26,166,0]) cylinder(r=3/2,h=8,$fn=30);
}
translate ([153,163,0]) cylinder(r=4,h=8,$fn=30);
translate ([79,18,0]) cylinder(r=4,h=8,$fn=30);
}
}