POV-Ray : Newsgroups : povray.advanced-users : Optimized curves : Re: Optimized curves Server Time
30 Jul 2024 06:24:08 EDT (-0400)
  Re: Optimized curves  
From: Chromax
Date: 3 Jan 2000 13:47:57
Message: <3870F071.8FF21310@mail.com>
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

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