POV-Ray : Newsgroups : povray.unofficial.patches : FloatValue in Spline Server Time
2 Sep 2024 06:19:31 EDT (-0400)
  FloatValue in Spline (Message 1 to 5 of 5)  
From: ingo
Subject: FloatValue in Spline
Date: 20 Mar 2000 11:22:21
Message: <8EFDBCE96seed7@204.213.191.228>
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.
According to his documentation 
http://pandora.inf.uni-jena.de/p/e/noo/povsp/use.html
and the MegaDoc a float can be used instead of vector.

Ingo

-- 
Photography: http://members.home.nl/ingoogni/
Pov-Ray    : http://members.home.nl/seed7/


Post a reply to this message

From: Chris Huff
Subject: Re: FloatValue in Spline
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

From: ingo
Subject: Re: FloatValue in Spline
Date: 21 Mar 2000 08:53:52
Message: <8EFE9BA60seed7@204.213.191.228>
Chris Huff wrote:

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

With or without commas, the result is always the same error.

Ingo

-- 
Photography: http://members.home.nl/ingoogni/
Pov-Ray    : http://members.home.nl/seed7/


Post a reply to this message

From: Bouf
Subject: Re: FloatValue in Spline
Date: 21 Mar 2000 09:21:08
Message: <38D789A2.9069E7DE@nanterre.marelli.fr>
ingo wrote:
> 
> Chris Huff wrote:
> 
> >It looks like the code is missing some commas after the vectors. I
> >noticed them in this part:
> >
> 
> With or without commas, the result is always the same error.

Maybe add a comma between pos(i) and rad(i) in the declaration of the
sphere...(didn't try this...)

Bouf.


Post a reply to this message

From: ingo
Subject: Re: FloatValue in Spline
Date: 21 Mar 2000 09:33:13
Message: <8EFE95477seed7@204.213.191.228>
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

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