POV-Ray : Newsgroups : povray.newusers : declaring variables and float operations : Re: declaring variables and float operations Server Time
5 Sep 2024 18:21:31 EDT (-0400)
  Re: declaring variables and float operations  
From: Margus Ramst
Date: 19 Feb 2000 18:49:13
Message: <38AF2C7E.C7F3C284@peak.edu.ee>
Hell, I had to paste both versions together to find the difference :P
I will never make a good proof-reader.

Margus

Thorsten Froehlich wrote:
> 
> 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.