|
 |
Isn't that a bug?
Surely these shouldn't be considered identical:
#declare myVar=mySpline //makes myVar a spline{}
#declare myVar=mySpline(32) //makes myVar equal <1,2,3>
--
Mark Hanford
http://www.mrhanford.com/povray
"Christopher James Huff" <chr### [at] mac com> wrote in message
news:chr### [at] netplex aussie org...
> In article <3c950d0c@news.povray.org>,
> "Mark Hanford" <ren### [at] blueyonder co uk> wrote:
>
> > Why can I do
> > #debug vstr(mySpline(pos), ...)
> >
> > or
> > camera{ location mySpline(pos) ...}
> >
> > but not
> > #declare MyVar = mySpline(pos);
>
> POV-Ray's parser (currently) isn't smart enough to figure out whether
> you want a copy of mySpline or a point on it. In the other two examples,
> it knows you are using vectors. Try this instead:
> #declare MyVar = (mySpline(pos));
> The parentheses get POV to treat it as a numeric expression, so it
> evaluates the spline instead of trying to copy it.
>
> --
> Christopher James Huff <chr### [at] mac com>
> POV-Ray TAG e-mail: chr### [at] tag povray org
> TAG web site: http://tag.povray.org/
Post a reply to this message
|
 |