POV-Ray : Newsgroups : povray.bugreports : Mis-matched '#end' invoking macro with a while loop : Re: Mis-matched '#end' invoking macro with a while loop Server Time
15 May 2024 04:54:29 EDT (-0400)
  Re: Mis-matched '#end' invoking macro with a while loop  
From: Thorsten Froehlich
Date: 7 Jul 2009 14:07:21
Message: <4a538ed9$1@news.povray.org>
Not a bug in POV-Ray but in your file: Your while is missing the #!

MadKairon wrote:
>   #include "colors.inc"
>   background { color rgb <.5, .4, .3> }
>   #declare Rnd_1 = seed (1153);
> 
> 
> 
>   camera {
>     location <0, 3, -23>
>     look_at  <1, 2,  0>
>   }
> 
> light_source {<100,200,-100> colour rgb 1}
> 
> 
> #macro Make_Frame()
>              #declare n = 1;
>              while (n = 1 )
>              box { <0,0,0>,<1,1,1>
>              pigment{rgb .5}
>              finish { phong 1 }
>              scale <rand(Rnd_1)/5,rand(Rnd_1)/2,rand(Rnd_1)*1.5>
>              translate <rand(Rnd_1)/2,rand(Rnd_1)/2,rand(Rnd_1)*4>
>              }
>              #declare n=n+1;
>              #end
> #end
> 
> object { Make_Frame() translate <.5,.5,.5> }
> 
> results en mis-matched #end
> 
>


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.