Ha-ha! Coincidentally, that was the exact question I had for myself.
So, here's the final version of the sun. The scale() at the top gives a final result that I could, if I wanted, print on my 3D printer: 202mm x 202mm x 10mm, which is a little bit less that 1/2 inch.
Enjoy!
//*********************************
$fn = 24;
scale( [ 0.1, 0.1, 1 ] )
sun();
module sun()
{
rotate( [ 0, 0, 45 ] )
fourRays( 600 );
fourRays( 1000 );
}
module fourRays( r )
{
for (a=[0:90:270])
{
rotate( [ 0, 0, a ] )
ray(r);
}
}
module ray( r )
{
k = r / (3*360);
for ( a=[0:10:3*360] )
{
translate( [ k*a, 10*sin(a), 0 ] )
scale( [ 1, 10-.009*a, 1 ] )
segment();
}
}
module segment()
{
rotate( [ 0, 90, 0 ] )
linear_extrude( 10 )
hull()
for (i=[-1:2:1])
{
translate( [ 0, i*3, 0 ] )
circle( 5 );
}
}
Sent from the
OpenSCAD mailing list archive at Nabble.com.
_______________________________________________
OpenSCAD mailing list
To unsubscribe send an email to
[hidden email]