POV-Ray : Newsgroups : povray.newusers : declaring variables and float operations : Re: declaring variables and float operations Server Time
5 Sep 2024 18:19:54 EDT (-0400)
  Re: declaring variables and float operations  
From: Thorsten Froehlich
Date: 19 Feb 2000 11:55:57
Message: <38aecb1d@news.povray.org>
Fixed version:

#declare RCon = 2.3;
#declare XPos = 0.0;
#declare ZPos = RCon-XPos;
#while (XPos <= RCon)
  sphere {< XPos,0, ZPos>,.1}
  sphere {< XPos,0,-ZPos>,.1}
  sphere {<-XPos,0,-ZPos>,.1}
  sphere {<-XPos,0, ZPos>,.1}
  #declare XPos = XPos+.1;
  #declare ZPos = RCon-XPos;
#end//while


Post a reply to this message

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