|
|
This reminds me of some drawing I did a long long time ago that I drew using just
one line on the page.
Some of the torii look like they have different radii from the attached cylindii
(err, cylinders, sorry about that). Is this an accurate observation or just an
optical illusion brought on from too many donuts and too much blood in my caffeine
system?
Josh
Nieminen Juha wrote:
> Since mazes are so popular nowadays, this is one made of tubes. An old
> idea in a bit different form:
>
> [Image]
>
> The source code is rather simple:
>
> #declare R=.08;
> #declare Tubes=
> union
> { torus { .25,R }
> torus { .25,R translate x }
> torus { .25,R translate z }
> torus { .5,R translate z }
> torus { .125,R translate <1,0,.625> }
> cylinder { <.5,0,0><.5,0,.5>,R }
> cylinder { <.75,0,1><.75,0,.75>,R }
> torus
> { .125,R clipped_by { box { <-.225,-R-.001,0><0,R+.001,.225> } }
> translate <.625,0,.5> }
> torus
> { .125,R clipped_by { box { <0,-R-.001,-.225><.225,R+.001,0> } }
> translate <.625,0,.75> }
> clipped_by { box { <0,-R-.001,0><1,R+.001,1> } } bounded_by { clipped_by }
> }
>
> union
> { #declare R=seed(0);
> #declare indz=-2;
> #while(indz<14)
> #declare indx=-2;
> #while(indx<12)
> object
> { Tubes translate <-.5,0,-.5> rotate y*90*int(rand(R)*4)
> translate <indx,0,indz> }
> #declare indx=indx+1;
> #end
> #declare indz=indz+1;
> #end
> pigment { rgb x+y/2 } finish { specular .5 }
> }
>
> camera { location <-2,1.5,-3> look_at 0 angle 45 }
> light_source { <20,25,-10> 1 }
>
> --
> main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
> ):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
--
Josh English
eng### [at] spiritonecom
"May your hopes, dreams, and plans not be destroyed by a few zeros."
Post a reply to this message
|
|