*Empty MediaWiki Message*
[stratum0-wiki.git] / Gesellschaftsspiel-Replikator%2FPoeppel_V1.mw
1 <pre><nowiki>
2 // Blindenpöppel
3 // Stratum 0
4 // 2014-01-21 V1.6
5 // License: WTF
6
7 $fn=50;
8
9 Hoehe=30;
10 Teiler=3;
11 Radius1=Hoehe/Teiler;
12 RadiusM=Hoehe*(Teiler-1)/Teiler/Teiler;
13
14 // Randverzierungen als Kindelemente übergeben
15 module randverzierung(n = 12) {
16 for(i = [1:n]) {
17 rotate([0,0,i*(360/n)])
18 translate([Radius1+0.1,0,0.5])
19 child();
20 }
21 }
22 rotate ([180,0,0])
23 {
24 difference()
25 {
26 union()
27 {
28 // Kegel erzeugen
29 color("red") cylinder(Hoehe,Radius1,Radius2);
30
31 // Rand auftragen
32 color("blue") cylinder(1,Radius1,Radius1);
33 }
34
35 // Spitze abschneiden
36 translate([0,0,Hoehe/3])
37 color("orange")cylinder(Hoehe,Radius1,Radius2);
38
39 // Hohlraum abziehen
40 color("green") cylinder(Hoehe-1,Radius1-1,Radius2);
41 }
42
43 // Deckel draufsetzen
44 color("black")
45 translate ([0,0,Radius1-1])
46 cylinder(1,RadiusM,RadiusM);
47
48 // Randverzierungen: nach Wunsch einkommentieren, oder ganz ohne
49
50 // Kegel:
51 //randverzierung(n=4) {
52 // rotate([0,90,0])
53 // cylinder(r1=0.5, r2=0, h=0.5, center=true);
54 //}
55
56 // Striche hochkant:
57 randverzierung(n=5) {
58 rotate([0,90,0])
59 cube([1,0.5,0.5], center=true);
60 }
61
62 // Striche quer:
63 //randverzierung(n=9) {
64 // cube([0.5,2,0.5], center=true);
65 //}
66
67 // Pyramiden:
68 //randverzierung(n=11) {
69 // rotate([0,90,0])
70 // cylinder(r1=0.5, r2=0, h=0.4, center=true, $fn=4);
71 //}
72
73 // Plusse:
74 //randverzierung(n=12) {
75 // rotate([0,90,0]) {
76 // cube([1,0.3,0.5], center=true);
77 // cube([0.3,1,0.5], center=true);
78 // }
79 //}
80 }
81 </nowiki></pre>
This page took 0.063107 seconds and 5 git commands to generate.