Rune wrote:
>
> I need the spheres to be positioned so that there's a specified distance
> between them and so that the bending is also evenly distributed.
Here is a a description for LSpline3.
Download from http://home.pacbell.net/tylereng/macros.zip.
----------------------------------------------------------
lspline3.inc v1.0
Linear natural cubic spline macro for POV-Ray 3.1
point=LSpline3(points[],t)
Interpolates any number of points given in an array by a
natural cubic spline where the parameter t ranges from 0
to 1 pointing linearily along the length of the spline.
This means that for example in an animation point
LSpline3(points,clock) moves at constant velocity.
First call creates the spline and returns the length in the
.x component of the vector. Subsequent calls return points
as specified by t.
Any number of splines can be created. Calling LSpline3()
with a different point set creates a new spline.
--------------------------------------------------------------
_______
Chromax
Post a reply to this message
|