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 20:14:57 EDT (-0400)
  Re: Macro for connecting n points through Spline  
From: Bald Eagle
Date: 20 Apr 2023 18:30:00
Message: <web.6441bc30f0b679ef1f9dae3025979125@news.povray.org>
"Kima" <nomail@nomail> 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.

You need to make sure that the control points 1-in from the end of each spline
segment is on the same line, so that the endpoints are tangent.  IIRC, that is
covered in the documentation somewhere.

https://www.youtube.com/watch?v=jvPPXbo87ds&pp=ygUNZnJleWEgc3BsaW5lcw%3D%3D

I also have a PDF that covers this specifically for POV-Ray

- BW


Post a reply to this message

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