|
|
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
|
|
|
|
Bouf wrote:
>Maybe add a comma between pos(i) and rad(i) in the declaration of the
>sphere...(didn't try this...)
No, but sphere { pos(i), rad(i).x pigment { color White } } works.
^^^
It looks like the float in the spline is always turned into a vector.
Ingo
--
Photography: http://members.home.nl/ingoogni/
Pov-Ray : http://members.home.nl/seed7/
Post a reply to this message
|
|