POV-Ray : Newsgroups : povray.newusers : Cannot Copy Identifier when using a spline{}? : Re: Cannot Copy Identifier when using a spline{}? Server Time
5 Sep 2024 00:13:11 EDT (-0400)
  Re: Cannot Copy Identifier when using a spline{}?  
From: Christopher James Huff
Date: 17 Mar 2002 17:02:45
Message: <chrishuff-3EC94B.17023717032002@netplex.aussie.org>
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

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