|
|
On Wed, 2 Jan 2002 14:00:51 -0500, Greg M. Johnson wrote:
> "Simon Adameit" <gom### [at] gmxde> wrote in message
> news:3c2cb9b7@news.povray.org...
>> The following code crashes POV
>> #local Z=0;
>> #while(Z<1)
>> #local
>> #end
>>
>
> Ain't that an infinite loop?
Yes, but it's worse than that. It's essentially the same as if you wrote
a file that was just #local #local #local #local #local ad infinitum, with
the result that the parser stackfaults.
--
#macro R(L P)sphere{L __}cylinder{L P __}#end#macro P(_1)union{R(z+_ z)R(-z _-z)
R(_-z*3_+z)torus{1__ clipped_by{plane{_ 0}}}translate z+_1}#end#macro S(_)9-(_1-
_)*(_1-_)#end#macro Z(_1 _ __)union{P(_)P(-_)R(y-z-1_)translate.1*_1-y*8pigment{
rgb<S(7)S(5)S(3)>}}#if(_1)Z(_1-__,_,__)#end#end Z(10x*-2,.2)camera{rotate x*90}
Post a reply to this message
|
|