POV-Ray : Newsgroups : povray.off-topic : Interpolation of 2D points : Re: Interpolation of 2D points Server Time
28 Jul 2024 10:22:38 EDT (-0400)
  Re: Interpolation of 2D points  
From: Warp
Date: 10 Sep 2014 13:49:55
Message: <54108f43@news.povray.org>
Lars Rohwedder <rok### [at] gmxde> wrote:
> Now I want a formula f(t) that returns a "smooth path" going through all
> these points.

Then what you want is probably this:

http://en.wikipedia.org/wiki/Centripetal_Catmull%E2%80%93Rom_spline

(It links to some example implementations.)

You could also achieve it by drawing a bezier curve between each pair
of points, but in that case you need to generate the two control points
between them. (This, in fact, gives you more control over the curvature
of the spline, and even its tangent at each point.)

-- 
                                                          - Warp


Post a reply to this message

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