POV-Ray : Newsgroups : povray.advanced-users : How to a dome using double "#while" loops... : Re: How to a dome using double "#while" loops... Server Time
29 Jul 2024 14:16:55 EDT (-0400)
  Re: How to a dome using double "#while" loops...  
From: Slime
Date: 6 Mar 2002 23:00:56
Message: <3c86e5f8$1@news.povray.org>
> #while (hh < 181)
> #while (h < 361)
>  object {sphere_point translate <0, 2, 0> rotate <0 , hh, h>}
>  #declare h = h + (360 / sphere_number);
> #declare hh = hh + (180 / sphere_number);
> #end
> #end

Try moving the line

#declare hh = hh + (180 / sphere_number);

to the outside of the first while loop but the inside of the second while
loop. (inbetween the two "#end"s)

- Slime
[ http://www.slimeland.com/ ]
[ http://www.slimeland.com/images/ ]


Post a reply to this message

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