POV-Ray : Newsgroups : povray.general : Array of points for use with bicubic patch : Re: Array of points for use with bicubic patch Server Time
29 Jul 2024 20:14:03 EDT (-0400)
  Re: Array of points for use with bicubic patch  
From: Warp
Date: 5 May 2011 12:33:47
Message: <4dc2d16b@news.povray.org>
D103 <nomail@nomail> wrote:
> > #declare Cnt = 0;
> > #declare X1 = -1.5;
> > #while(X1 <= 1.5)
> >   #declare Z1 = -1.5;
> >   #while(Z1 <= 1.5)
> >
> >     ...
> >
> >     #declare Z1 = Z1 + 1;
> >     #declare Cnt = Cnt + 1;
> >   #end
> >   #declare X1 = X1 + 1;
> > #end
> >
> > --
> >                                                           - Warp

> Sorry, afraid I'm in the dark here. Perhaps you could explain in a bit more
> detail? I've read the help files on nested loops, maybe there's something I
> missed or misunderstood.

  I just can't understand why you insist in writing nested loops in such
complicated ways rather than using the simpler approach, as shown above.

-- 
                                                          - Warp


Post a reply to this message

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