|
|
I don't want to be picky, but your indentation could still be better.
Firstly, you didn't indent the loop blocks and secondly in my opinion
you over-indented the objects.
May I propose my own indentation style?
camera
{
location -10*z
look_at 0
}
light_source {-10,1}
#declare Count1=1; // first loop count
#while (Count1<6)
#declare Count2=1; // second loop count
#while (Count2<21) // errors if >=22, not <=21
// CSG object
union
{
difference
{
sphere {0,2}
object {No}
pigment {rgb .5}
}
difference
{
cone
{
-y,1,y,0 // any object? (sphere, box, cylinder, etc.)
inverse // comment out if using other inverse below
}
cone {-y,1,y,0}
// inverse // uncomment, no error (comment other out)
}
pigment {rgb 1.5}
}
#declare Count2=Count2+1;
#end // inner loop
#declare Count1=Count1+1;
#end // outer loop
--
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
|