POV-Ray : Newsgroups : povray.binaries.images : Woven Cloth Texture : Re: Woven Cloth Texture Server Time
31 Jul 2024 14:33:28 EDT (-0400)
  Re: Woven Cloth Texture  
From: Thomas de Groot
Date: 19 Feb 2010 03:15:08
Message: <4b7e488c@news.povray.org>
"Dave Blandston" <nomail@nomail> schreef in bericht 
news:web.4b7dc3e6adaa4c5ecba3fb0f0@news.povray.org...
> Christian Froeschlin <chr### [at] chrfrde> wrote:
>> Ah, but everything you #declare is a variable. The value
>> of the variable P_Cloth just happens to be a pigment. There's
>> nothing special about this variable ...
>>
>> Dave Blandston wrote:
>>
>>  > The restriction would be that once "P_Cloth" is defined as a
>>  > pigment it must remain a pigment.
>>
>> ... which is why this is also incorrect. Feel free
>> to follow it up with
>>
>> #declare P_Cloth = 5;
>>
>> or
>>
>> #declare P_Cloth = sphere {0,1}
>>
>> or even
>>
>> #declare P_Cloth = sphere {0,1 pigment {P_Cloth}}
>>
>> The reason you can use P_Cloth to define P_Cloth is that
>> the right hand side of an assignment is processed first,
>> then the result is assigned to the left hand side.
>

To tell the truth, while I see the positive sides of this, I also feel this 
is highly confusing in the end, as you may lose track of all the 
intermediary stages of variable changes.

Thomas


Post a reply to this message

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