-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathseigaiha.scad
More file actions
62 lines (52 loc) · 1.98 KB
/
seigaiha.scad
File metadata and controls
62 lines (52 loc) · 1.98 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
// Waves inlay for coaster - print in another colour and insert.
smoothness = 200;
feat_smoothness = 200;
feat_thick = 1;
radius = 43 - 0.2; // total outer radius - a little bit so that it fits - these designs seem to expand a bit
height = 1;
union(){
intersection(){
seigaiha_grid(15,height);
translate([0,0,-1]) cylinder(r=radius, h=height*3, $fn = smoothness);
}
difference(){
translate([0,0,0]) cylinder(r=radius, h=height, $fn = smoothness);
translate([0,0,-1]) cylinder(r=radius-1, h=height*3, $fn = smoothness);
}
}
module stencil (r,h) {
difference() {
cylinder(h=h, r=r, $fn=feat_smoothness);
translate([0,0,-h]) difference() {
cylinder(h=h*3, r=r-feat_thick, $fn=feat_smoothness);
translate([0,0,-2*h]) cylinder(h=h*4, r=r/4*3, $fn=feat_smoothness);
}
translate([0,0,-h]) difference() {
cylinder(h=h*3, r=r/4*3-feat_thick, $fn=feat_smoothness);
translate([0,0,-2*h]) cylinder(h=h*4, r=r/4*2, $fn=feat_smoothness);
}
translate([0,0,-h]) difference() {
cylinder(h=h*3, r=r/4*2-feat_thick, $fn=feat_smoothness);
translate([0,0,-2*h]) cylinder(h=h*4, r=r/4*1, $fn=feat_smoothness);
}
translate([0,0,-h]) difference() {
cylinder(h=h*3, r=r/4*1-feat_thick, $fn=feat_smoothness);
//translate([0,0,-2*h]) cylinder(h=h*4, r=r/4*1, $fn=feat_smoothness);
}
translate([r,-r/2,-h]) cylinder(h=h*3, r=r, $fn=feat_smoothness);
translate([-r,-r/2,-h]) cylinder(h=h*3, r=r, $fn=feat_smoothness);
translate([0,-r,-h]) cylinder(h=h*3, r=r, $fn=feat_smoothness);
}
}
module seigaiha_grid(r,h) {
vrep = 10;
hrep = 10;
translate([-hrep/2*r, -vrep/2*r]) for(row = [0:vrep]) {
translate([0,row*r,0]) {
stencil(r,h);
for(col = [0:hrep]) {
translate([col*r, (col%2)*(r/2), 0]) stencil(r,h);
}
}
}
}