POV-Ray : Newsgroups : povray.unofficial.patches : FloatValue in Spline : Re: FloatValue in Spline Server Time
2 Sep 2024 08:17:19 EDT (-0400)
  Re: FloatValue in Spline  
From: Chris Huff
Date: 20 Mar 2000 17:06:57
Message: <chrishuff_99-1FCB11.17090120032000@news.povray.org>
In article <8EFDBCE96seed7@204.213.191.228>, ing### [at] homenl (ingo) 
wrote:

> The example for using splines given by Wolfgang Ortman
> http://pandora.inf.uni-jena.de/offen/noo/povsp/spteach4.pov
> does not work. WinMegaPov 0.4 gives an error on the radius of the sphere:
> Float expected but vector or colour expression found.

It looks like the code is missing some commas after the vectors. I 
noticed them in this part:

#declare pos=spline { /* declare identifier pos as spline */

               cubic_spline /* kind of spline */

              -0.1, <-0.1,0,0>    <---here
               0,   <0,0,0>,
               0.3, <0.3,0,0>,
               0.7, <0.7,1,0>,
               1.0, <1,1,0>       <---and here
               1.1, <1.1,1,0>

-- 
Chris Huff
e-mail: chr### [at] yahoocom
Web page: http://chrishuff.dhs.org/


Post a reply to this message

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