POV-Ray : Newsgroups : povray.documentation.inbuilt : Pov help 3.6.1 Server Time
20 Apr 2024 01:52:43 EDT (-0400)
  Pov help 3.6.1 (Message 1 to 6 of 6)  
From: Phil Cook
Subject: Pov help 3.6.1
Date: 20 Aug 2004 06:56:53
Message: <opsc01pvcsefp2ch@news.povray.org>
3.2.2.6.3

In the #range variety, Low_Value and High_Value are floats separated by a  
comma and enclosed in parentheses. If Low_Value <= Switch_Value and  
Switch_Value<=High_Value then the condition is true.

Should perhaps be:
If Low_Value >= Switch_Value

:)
--
Phil Cook

-- 
All thoughts and comments are my own unless otherwise stated and I am  
happy to be proven wrong.


Post a reply to this message

From: Warp
Subject: Re: Pov help 3.6.1
Date: 20 Aug 2004 16:19:20
Message: <41265cc8@news.povray.org>
Phil Cook <phi### [at] nospamdeckingdealscouk> wrote:
> 3.2.2.6.3

> In the #range variety, Low_Value and High_Value are floats separated by a  
> comma and enclosed in parentheses. If Low_Value <= Switch_Value and  
> Switch_Value<=High_Value then the condition is true.

> Should perhaps be:
> If Low_Value >= Switch_Value

  Are you sure?

-- 
plane{-x+y,-1pigment{bozo color_map{[0rgb x][1rgb x+y]}turbulence 1}}
sphere{0,2pigment{rgbt 1}interior{media{emission 1density{spherical
density_map{[0rgb 0][.5rgb<1,.5>][1rgb 1]}turbulence.9}}}scale
<1,1,3>hollow}text{ttf"timrom""Warp".1,0translate<-1,-.1,2>}//  - Warp -


Post a reply to this message

From: Darren New
Subject: Re: Pov help 3.6.1
Date: 20 Aug 2004 20:30:02
Message: <4126978a$1@news.povray.org>
Phil Cook wrote:
> Should perhaps be:
> If Low_Value >= Switch_Value

I've found a very effective way of preventing this sort of error is to 
never use > or >=.

A <= B && B <= C means "B is between A and C".

now() < saved() + 15
means if the close is before fifteen minutes after the saved time.

Etc.


Post a reply to this message

From: Phil Cook
Subject: Re: Pov help 3.6.1
Date: 21 Aug 2004 14:23:33
Message: <opsc3hhji6dzhzpc@news.povray.org>
And lo on 20 Aug 2004 16:19:20 -0400, Warp <war### [at] tagpovrayorg> did  
spake, saying:

> Phil Cook <phi### [at] nospamdeckingdealscouk> wrote:
>> 3.2.2.6.3
>
>> In the #range variety, Low_Value and High_Value are floats separated by  
>> a
>> comma and enclosed in parentheses. If Low_Value <= Switch_Value and
>> Switch_Value<=High_Value then the condition is true.
>
>> Should perhaps be:
>> If Low_Value >= Switch_Value
>
>   Are you sure?

Nope :) Perhaps Switch_Value >= Low_Value, sorry it just read wrong to me  
in conjuction with the example which goes:

#range (LOW_1,HIGH_1)
    // This section is parsed if (VALUE>=LOW_1)&(VALUE<=HIGH_1)

--
Phil Cook

-- 
All thoughts and comments are my own unless otherwise stated and I am  
happy to be proven wrong.


Post a reply to this message

From: Warp
Subject: Re: Pov help 3.6.1
Date: 22 Aug 2004 12:41:35
Message: <4128ccbf@news.povray.org>
Phil Cook <phi### [at] rocainnospamfreeservecouk> wrote:
> Nope :) Perhaps Switch_Value >= Low_Value

  But why? It's the same thing.

-- 
plane{-x+y,-1pigment{bozo color_map{[0rgb x][1rgb x+y]}turbulence 1}}
sphere{0,2pigment{rgbt 1}interior{media{emission 1density{spherical
density_map{[0rgb 0][.5rgb<1,.5>][1rgb 1]}turbulence.9}}}scale
<1,1,3>hollow}text{ttf"timrom""Warp".1,0translate<-1,-.1,2>}//  - Warp -


Post a reply to this message

From: Phil Cook
Subject: Re: Pov help 3.6.1
Date: 23 Aug 2004 04:05:44
Message: <opsc6cbvgoefp2ch@news.povray.org>
And lo on 22 Aug 2004 12:41:35 -0400, Warp <war### [at] tagpovrayorg> did  
spake, saying:

> Phil Cook <phi### [at] rocainnospamfreeservecouk> wrote:
>> Nope :) Perhaps Switch_Value >= Low_Value
>
>   But why? It's the same thing.
>
Because the text reads Low_Value <= Switch_Value, Switch_Value<=High_Value  
and the example reads the equivalent of Switch_Value >= Low_Value,  
Switch_Value <= High_Value. Yes mathematically they are the same but it's  
not consistent grammatically.
--
Phil Cook

-- 
All thoughts and comments are my own unless otherwise stated and I am  
happy to be proven wrong.


Post a reply to this message

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