POV-Ray : Newsgroups : povray.general : bezier_spline with prism : Re: bezier_spline with prism Server Time
21 May 2024 22:43:21 EDT (-0400)
  Re: bezier_spline with prism  
From: William F Pokorny
Date: 19 Aug 2019 17:30:42
Message: <5d5b1502$1@news.povray.org>
On 8/19/19 3:18 PM, Kima wrote:
> I can use bezier_spline set of points in lathe as
> 
>    lathe {
>      bezier_spline
>      80
>      <2.00, 1.00>, <1.00, 1.50>, <3.00, 3.50>, <2.00, 4.00>
>      <2.00, 4.00>, <3.00, 4.50>, <1.00, 6.50>,<2.00, 7.00>
>      pigment { color rgbt<0.4,0.2,1,.5>}
>      finish { ambient 1 }
>    }
> 
> but when I use the same set in prism as
> 
>    prism {
>      bezier_spline
>      0,1,1,
> //    80
>      <2.00, 1.00>, <1.00, 1.50>, <3.00, 3.50>, <2.00, 4.00>
>      <2.00, 4.00>, <3.00, 4.50>, <1.00, 6.50>,<2.00, 7.00>
>      pigment { color rgbt<0.4,0.2,1,.5>}
>      finish { ambient 1 }
>    }
> 
> I get an error, "Prism with Bezier splines must have four points per segment."
> Where did I do wrong?
> 
> 
Hi. Not sure how either works. In the first where you have '80' I think 
it should be '8,'. In the second where you have '0,1,1,' I think 
'0,1,8,' is what is needed. In the latter the parser is probably seeing 
the 1 as the point count and saying you need at least 4 for a valid 
segment.

Bill P.


Post a reply to this message

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