-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblatt.scad
59 lines (53 loc) · 1.05 KB
/
blatt.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
52
53
54
55
56
resolution = 10;
module edge(){
for (x=[0:39]){
y = x^2.6/367;
hull(){
translate([x,y])
// circle
sphere(d=1,$fn=resolution);
x2 = x+1;
y2 = (x+1)^2.6/367;
translate([x2,y2])
// circle
sphere(d=1,$fn=resolution);
}
}
}
module leaf(){
difference(){
union(){
edge();
mirror([-1,1])
edge();
}
translate([0,0,-50])
cube(100,center=true);
}
}
module pegset(){
for (i=[0,10,20,30,40]){
j = i^2.6/367;
pegresolution = .3;
holeresolution = .6;
translate([i,j,0])
cylinder(h=.6,center=true,$fn=resolution,d=pegresolution);
}
}
//scale([5,5,5])
//leaf();
//mirror([1,1,0])
scale([5,5,5])
union()
{
leaf();
pegset();
mirror([-1,1])
pegset();
translate([36.6,-20.7,0])
mirror([1,1,0])
rotate([0,0,90])
rotate_extrude(convexity = 10,angle=30)
translate([42, 0, 0])
circle(d = 1, $fn=resolution);
}