POV-Ray : Newsgroups : povray.beta-test : too many nested tables Server Time
29 Jul 2024 10:21:44 EDT (-0400)
  too many nested tables (Message 1 to 4 of 4)  
From: Greg M  Johnson
Subject: too many nested tables
Date: 16 May 2002 16:13:39
Message: <3ce412f3$1@news.povray.org>
// why cannot I do this:
// perhaps I **have** hit the brick wall of povray after all.
//

#declare iter=3;
#declare scal=0.5;
#declare AH=.20;

#macro set1()
        sphere {0,0.5,1 translate
#end

#declare i=0;
#while(i<iter)
#macro set2()
 set1() }
 set1() scale scal translate < AH, AH, AH>}
 set1() scale scal translate < AH, AH,-AH>}
 set1() scale scal translate < AH,-AH, AH>}
 set1() scale scal translate < AH,-AH,-AH>}
 set1() scale scal translate <-AH, AH, AH>}
 set1() scale scal translate <-AH, AH,-AH>}
 set1() scale scal translate <-AH,-AH, AH>}
 set1() scale scal translate <-AH,-AH,-AH>}

#end                //scale scal

#declare i=i+1;
#end

#macro set1()
  set2()
#end


blob{
threshold 0.5
set1()
pigment{color rgb <0.9,0.1,0.3>}}


Post a reply to this message

From: Anders K 
Subject: Re: too many nested tables
Date: 16 May 2002 16:27:08
Message: <3ce4161c$1@news.povray.org>
Greg M. Johnson wrote:
> #macro set1()
>         sphere {0,0.5,1 translate
> #end
> [...]
>  set1() }
>  set1() scale scal translate < AH, AH, AH>}

...which results in:
         sphere {0,0.5,1 translate }
         sphere {0,0.5,1 translate scale scal translate < AH, AH, AH>}

And this is supposed to do what? :-)

Anders

--
light_source{6#local D=#macro B(E)#macro A(D)#declare E=(E-#declare
C=mod(E D);C)/D;C#end#while(E)#if(A(8)=7)#declare D=D+2.8;#else#if(
C>2)}torus{1..2clipped_by{box{-2y}}rotate<1 0C>*90translate<D+1A(2)
*2+1#else}cylinder{0(C-v=1).2translate<D+C*A(2)A(4)#end-2 13>finish
{specular 1}pigment{rgb x}#end#end#end-8;1B(445000298)B(519053970)B
(483402386)B(1445571258)B(77778740)B(541684549)B(42677491)B(70)}


Post a reply to this message

From:
Subject: Re: too many nested tables
Date: 17 May 2002 02:02:28
Message: <1579euk28ei9jj514ucnde6e4gg9427ju0@4ax.com>
On Thu, 16 May 2002 16:12:37 -0400, "Greg M. Johnson" <gregj:-)565### [at] aolcom>
wrote:

> // why cannot I do this:

becouse you have no value for translation of sphere

ABX


Post a reply to this message

From: Greg M  Johnson
Subject: Re: too many nested tables
Date: 17 May 2002 08:37:11
Message: <3ce4f977$1@news.povray.org>
See p.b-t.b.


Post a reply to this message

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