POV-Ray : Newsgroups : povray.advanced-users : Smooth, continuous Bezier splines (again) : Re: Smooth, continuous Bezier splines (again) Server Time
5 Feb 2025 11:58:14 EST (-0500)
  Re: Smooth, continuous Bezier splines (again)  
From: Tor Olav Kristensen
Date: 29 Jan 2025 13:30:00
Message: <web.679a730696675d9fdd186bde89db30a9@news.povray.org>
William F Pokorny <ano### [at] anonymousorg> wrote:
> On 1/29/25 10:51, Tor Olav Kristensen wrote:
> > #macro CubicBezierFn(c0, c1, c2, c3)
> >
> >      function(s) {
> >          0
> >          + pow(1 - s, 3)*c0
> >          + 3*pow(1 - s, 2)*s*c1
> >          + 3*(1 - s)*pow(s, 2)*c2
> >          + pow(s, 3)*c3
> >      }
> >
> > #end // macro CubicBezierFn
>
> Perhaps time to add an inbuilt f_bezier_cubic() to yuqk too. :-)

Yes, that would be nice.

Then comes the question if adding f_bezier_quadratic() and f_bezier_quartic()
also is a good idea.

And then if the various derivative functions of them should be added...

--
Tor Olav
http://subcube.com
https://github.com/t-o-k


Post a reply to this message

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