|
 |
"Bald Eagle" <cre### [at] netscape net> wrote:
> "Leroy" <whe### [at] gmail com> wrote:
> > #if(V2=<-1.#IO,-1.#IO,-1.#IO>) #debug"hit"#end
> >
> > Caused POV to Crash!
>
> That's weird - might be something that the parser doesn't handle well, but
> crashing isn't acceptable. Try -Inf
Looks like it's likely a parser / tokenizer issue.
Also, when comparing vectors, use
VEq(V1, V2). Tests for equal vectors, returns true if all three components of
V1equal the respective components of V2.
(IIRC, that's in math.inc)
# characters. [wiki.povray.org], [cmp.felk.cvut.cz], [POV-Ray 3....n Page 93.]
In POV‑Ray, # is reserved to start language directives (e.g., #if,
#declare, #include). When the scanner encounters -1.#IO, it reads -1. as a
instead of producing a normal parse error. [povray.org], [POV-Ray: D...n
Language]
The condition #if (V2 = <...>) is being treated as a relational equality test
(=) inside the #if (not an assignment). #if conditions must evaluate to a
in the numeric token, but even with valid numbers you would need to compare
vectors via their components or length. [museum.state.il.us], [wiki.povray.org]
Post a reply to this message
|
 |