|
|
"Chris Huff" <chr### [at] maccom> wrote in message
news:chrishuff-B4EB2C.15073418122000@news.povray.org...
> In article <3a3e6b3d@news.povray.org>, "Andy Cocker"
> <big### [at] mariner9fsnetcouk> wrote:
>
> > I don't quite understand what #if (Norm.x != 0 | Norm.y != 0 | Norm.z
> > != 0) means, but I've yet to really look into it.
>
> If the trace() function doesn't find an intersection, it will return <
> 0, 0, 0> as the normal. This allows you to find out if it actually hit
> something.
Thanks Chris. It was the ! and the | predominantly that I didn't understand,
but I think I've got it figured out... my new scene is behaving as I want it
to anyway.
Would I be correct in thinking that the ! stands for 'does not', and the |
signifies 'and', thus the code reads "unless the trace function returns
<0,0,0>, then parse the following.. otherwise goto #else"?
Forgive me, this is probably really elementary programming syntax, but I'm
no programmer. According to the docs then I think I'm right.
All the best,
Andy Cocker
Post a reply to this message
|
|