User:Mths/sdr ldr: Difference between revisions
No edit summary |
No edit summary |
||
Line 9: | Line 9: | ||
[[File:Helmetnumber1photo5.jpg|frame|right|200px|a circuit for one vertex]] | [[File:Helmetnumber1photo5.jpg|frame|right|200px|a circuit for one vertex]] | ||
[[File:Helmetnumber1photo3.png|frame|right|200px|3d view of a vertex]] | [[File:Helmetnumber1photo3.png|frame|right|200px|3d view of a vertex]] | ||
<br> | |||
Code for creation of a vertex in [http://www.openscad.org/ OPENSCAD] | Code for creation of a vertex in [http://www.openscad.org/ OPENSCAD] | ||
<source lang="javascript"> | <source lang="javascript"> |
Revision as of 10:31, 1 July 2013
Helmet #1
Code for creation of a vertex in OPENSCAD
<source lang="javascript">
hoehe2 = 18;
hoehe = -8;
abstand = 10;
laengestab = 10;
wert = 200;
winkel = 58.2;
//31,8
//69.1
module test001()
{
union() {
difference() {
union() {
cylinder(r = 20,h = 13, center = true,$fn=wert);
rotate(winkel, [1, 0, 0])
translate([0,hoehe,hoehe2])
cylinder(r = 7, h = laengestab, center = true,$fn=wert);
rotate(72, [0, 0, 1])
rotate(winkel, [1, 0, 0])
translate([0,hoehe,hoehe2])
cylinder(r = 7, h = laengestab, center = true,$fn=wert);
rotate(144, [0, 0, 1])
rotate(winkel, [1, 0, 0])
translate([0,hoehe,hoehe2])
cylinder(r = 7, h = laengestab, center = true,$fn=wert);
rotate(216, [0, 0, 1])
rotate(winkel, [1, 0, 0])
translate([0,hoehe,hoehe2])
cylinder(r = 7, h = laengestab, center = true,$fn=wert);
rotate(288, [0, 0, 1])
rotate(winkel, [1, 0, 0])
translate([0,hoehe,hoehe2])
cylinder(r = 7, h = laengestab, center = true,$fn=wert);
}
union() {
translate([0,0,2])
rotate(90, [0, 0, 0])
cylinder(r = 11.1, h = 9, center = true,$fn=wert);
rotate(winkel, [1, 0, 0])
translate([0,hoehe,hoehe2])
cylinder(r = 3.25, h = laengestab, center = true,$fn=wert);
rotate(72, [0, 0, 1])
rotate(winkel, [1, 0, 0])
translate([0,hoehe,hoehe2])
cylinder(r = 3.25, h = laengestab, center = true,$fn=wert);
rotate(144, [0, 0, 1])
rotate(winkel, [1, 0, 0])
translate([0,hoehe,hoehe2])
cylinder(r = 3.25, h = laengestab, center = true,$fn=wert);
rotate(216, [0, 0, 1])
rotate(winkel, [1, 0, 0])
translate([0,hoehe,hoehe2])
cylinder(r = 3.25, h = laengestab, center = true,$fn=wert);
rotate(288, [0, 0, 1])
rotate(winkel, [1, 0, 0])
translate([0,hoehe,hoehe2])
cylinder(r = 3.25, h = laengestab, center = true,$fn=wert);
}
}
}
}
test001();
</source