POV-Ray : Newsgroups : povray.newusers : changing declared values? Server Time
5 Nov 2024 17:23:52 EST (-0500)
  changing declared values? (Message 1 to 5 of 5)  
From: Eitan Tal
Subject: changing declared values?
Date: 12 Jul 1999 10:28:45
Message: <3789fb9d@news.povray.org>
is it possible to change values that have already been declared? like,
#declare a = 2
#declare a = a*a
#declare a = a*a

and so on...?


Post a reply to this message

From: Nieminen Mika
Subject: Re: changing declared values?
Date: 12 Jul 1999 10:38:28
Message: <3789fde4@news.povray.org>
Eitan Tal <eit### [at] netvisionnetil> wrote:
: is it possible to change values that have already been declared? like,
: #declare a = 2
: #declare a = a*a
: #declare a = a*a

: and so on...?

  Why don't you try?

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Margus Ramst
Subject: Re: changing declared values?
Date: 12 Jul 1999 10:39:08
Message: <3789FE24.8694E7BD@peak.edu.ee>
Certainly. In fact, #while loops are generally done using this.
Example:

#declare C=0;

#while (C<10)
#declare C=C+1;
#end

Eitan Tal wrote:
> 
> is it possible to change values that have already been declared? like,
> #declare a = 2
> #declare a = a*a
> #declare a = a*a
> 
> and so on...?


Post a reply to this message

From: Eitan Tal
Subject: Re: changing declared values?
Date: 12 Jul 1999 12:25:12
Message: <378a16e8@news.povray.org>
Margus Ramst wrote in message <3789FE24.8694E7BD@peak.edu.ee>...
>Certainly. In fact, #while loops are generally done using this.
>Example:
>
>#declare C=0;
>
>#while (C<10)
>#declare C=C+1;
>#end
>
>Eitan Tal wrote:
>>
>> is it possible to change values that have already been declared? like,
>> #declare a = 2
>> #declare a = a*a
>> #declare a = a*a
>>
>> and so on...?
>

Tell me more about Pov-Ray functions please


Post a reply to this message

From: Chris Huff
Subject: Re: changing declared values?
Date: 12 Jul 1999 15:08:35
Message: <378A3E4A.865B81FB@compuserve.com>
There is a great source of information about the POV-Ray functions,
keywords, objects, etc. It covers everything, and is well written and
easy to understand. It includes a tutorial section, and a reference
section.
It is the manual. pov.doc. It comes with POV-Ray, in the same archive as
the rest of the download. Please at least try to find the answers to
your questions in it, it is faster than the newsgroups anyway.
In addition, depending on what platform you are on, there may be help
accessible directly from the POV-Ray application program.


Post a reply to this message

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