|
|
In article <3c950d0c@news.povray.org>,
"Mark Hanford" <ren### [at] blueyondercouk> 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] maccom>
POV-Ray TAG e-mail: chr### [at] tagpovrayorg
TAG web site: http://tag.povray.org/
Post a reply to this message
|
|