POV-Ray : Newsgroups : povray.binaries.scene-files : Making functions for natural cubic splines : Making functions for natural cubic splines Server Time
26 Apr 2024 16:58:53 EDT (-0400)
  Making functions for natural cubic splines  
From: Tor Olav Kristensen
Date: 6 Oct 2014 18:35:00
Message: <web.54331726f5851fad7b9c043a0@news.povray.org>
The POV-Ray SDL code in two files in the attached zip-file has macros that
creates functions that can be used to make splines like POV-Ray's built-in
(cubic) natural_spline. (There's also code that shows how to use the macros.)

I made this to illustrate a possible way to make cubic splines, as discussed in
this thread:

Newsgroup: povray.binaries.utilities
From: Bald Eagle
Subject: Re: PointWriter: New app for making spline-based shapes easily
Date: 5th Oct 2014
http://news.povray.org/web.5431a1b09ace5295e7df57c0%40news.povray.org


Also see these threads for similar macros and more:

Newsgroup: povray.text.scene-files
From: Tor Olav Kristensen
Subject: Even spacing of points along natural cubic splines
Date: 12th Dec 2010
http://news.povray.org/povray.text.scene-files/thread/%3Cweb.4d04dadb31d78932c734aecd0@news.povray.org%3E/

Newsgroup: povray.binaries.images
From: Tor Olav Kristensen
Subject: Spacing of points along natural cubic splines
Date: 12th Dec 2010
http://news.povray.org/povray.binaries.images/thread/%3Cweb.4d04e35320256a0cc734aecd0%40news.povray.org%3E/

--
Tor Olav
http://subcube.com


Post a reply to this message


Attachments:
Download 'natural_cubic_splines.zip' (3 KB)

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