POV-Ray : Newsgroups : povray.advanced-users : Curve fitting a function with a cubic spline : Re: Curve fitting a function with a cubic spline Server Time
29 Jul 2024 14:20:09 EDT (-0400)
  Re: Curve fitting a function with a cubic spline  
From: Christopher Johnson
Date: 18 Jan 2002 14:34:49
Message: <3c4878d9@news.povray.org>
"Tor Olav Kristensen" <tor### [at] hotmailcom> wrote in message
news:3C476509.937360DC@hotmail.com...

>
> Unfortunately I don't have to to investigate
> this, but you can try this search:
>
>
http://www.google.com/search?hl=en&q=curve+fitting+3rd+degree+polynomial+%22
cubic+spline%22
>
> Btw.:
> Are you thinking of using _one_ or _several_
> cubic splines to interpolate the function ?
>
>
> Tor Olav

Ok, I've managed to write a macro to fit the a cubic spline (pov 3.5 b10) to
a function.  I assigned control points to the peaks, troughs, and zero
crossings of the function.  The only thing I still can't figure out is how
to find the endpoints.  For n points running from 0 to n, I've only managed
to get everything between 1 and n-1.  I tried the links that Tor Olav
suggested and even tried other sites on the subject but I'm still stumped.
Odds are the answer is staring me in the face but .....

I'm using the POV 3.5 cubic spline feature so I need to find the time value
and coords of the endpoints.

Thanks
Chris


Post a reply to this message

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