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