http://forum.openscad.org/file/n17859/triangle.png
Try this code
$fn=50;
r=6;
r1=8;
h = 100;
step=5;
//cylinder(r=6, h=100);
half();
mirror([0,1,0])
half();
module half()
{
translate([0, h/2, 0])
bow120();
translate([0, h/2, 0]) rotate([30, 0, 0]) translate([0, r1, 0])
cylinder(r=r, h=h);
translate([0, h/2, 0]) rotate([90, 0, 0]) translate([0, -r1, 0])
cylinder(r=r, h=h/2);
}
module bow120(w=-90)
{
for(i=[0:step:120-step])
{
hull()
{
rotate([w+i, 0, 0]) translate([0, r1, 0])
cylinder(r=r, h=0.1);
rotate([w+i+step, 0, 0]) translate([0, r1, 0])
cylinder(r=r, h=0.1);
}
}
}
--
View this message in context: http://forum.openscad.org/Triangle-Project-tp17854p17859.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
Nicely done!
Admin - PM me if you need anything, or if I've done something stupid...
Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.
View this message in context: http://forum.openscad.org/Triangle-Project-tp17854p17860.html
Sent from the OpenSCAD mailing list archive at Nabble.com.