POV-Ray : Newsgroups : povray.general : Macro for connecting n points through Spline : Re: Macro for connecting n points through Spline Server Time
26 Apr 2024 04:33:22 EDT (-0400)
  Re: Macro for connecting n points through Spline  
From: Josh English
Date: 20 Apr 2023 16:40:08
Message: <6441a328$1@news.povray.org>
On 4/20/2023 3:47 AM, Kima wrote:
> I know how Spline works for two points, but how can we create a smooth line of
> spheres passing through n points? I am looking for something like line smoothing
> in graphs/charts.
> 
> I assume we have to create n-1 Splines, but how do we calculate the control
> points to have a smooth curvature over points?
> 
> In the tutorial on Bezier patches, there is an explanation for aligning the
> control points for Bezier surfaces, but I am not sure if we need to apply the
> same approach here.
> 

My bez.inc file has several functions to do this.

https://www.joshuarenglish.com/povray/bez.html


Post a reply to this message

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