POV-Ray : Newsgroups : povray.off-topic : Interpolation of 2D points : Re: Interpolation of 2D points Server Time
28 Jul 2024 10:30:20 EDT (-0400)
  Re: Interpolation of 2D points  
From: Lars Rohwedder
Date: 11 Sep 2014 06:14:31
Message: <54117607$1@news.povray.org>
Am 10.09.2014 um 19:49 schrieb Warp:
> 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

These looks fine. The "Chordal" one is the favourite at the moment.

> (It links to some example implementations.)

I see. I try to use it in my program.


> 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.)

The control points are the problem for Bezier splines. So I'll try the
Catmull-Rom-Curves. (btw, their name sounds better :-DD)

Thanks a lot!

Lars R.


Post a reply to this message

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