POV-Ray : Newsgroups : povray.advanced-users : Smooth, continuous Bezier splines (again) : Re: Smooth, continuous Bezier splines (again) Server Time
5 Feb 2025 11:52:15 EST (-0500)
  Re: Smooth, continuous Bezier splines (again)  
From: William F Pokorny
Date: 29 Jan 2025 12:34:11
Message: <679a6693$1@news.povray.org>
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. :-)

Bill P.


Post a reply to this message

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