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:19:40 EDT (-0400)
  Re: Cannot Copy Identifier when using a spline{}?  
From: Mark Hanford
Date: 18 Mar 2002 07:14:24
Message: <3c95da20$1@news.povray.org>
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] maccom> wrote in message
news:chr### [at] netplexaussieorg...
> 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.