POV-Ray : Newsgroups : povray.general : bezier_spline with prism : Re: bezier_spline with prism Server Time
17 May 2024 20:27:14 EDT (-0400)
  Re: bezier_spline with prism  
From: Kima
Date: 20 Aug 2019 01:05:00
Message: <web.5d5b7e4d57efbc06ecc0fada0@news.povray.org>
William F Pokorny <ano### [at] anonymousorg> wrote:
> 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.

Thanks, Bill. 80 in lathe was a typo, as I clipped a larger bezier_spline set
for readability here. My mistake was the third parameter of prism. Now
everything works perfectly. Thank you very much.


Post a reply to this message

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