POV-Ray : Newsgroups : povray.beta-test : Filling in T values in splines : Re: Filling in T values in splines Server Time
29 Jul 2024 22:31:58 EDT (-0400)
  Re: Filling in T values in splines  
From: Rune
Date: 24 Feb 2002 05:41:30
Message: <3c78c35a@news.povray.org>
"bob h" wrote:
> Lost me on this whole idea.

The idea is that the macro fill in the unspecified T values for you using
linear interpolation.

The macro will convert this:

array[7*2] {
   0.0*y, <0,1,2>,
       x, <1,5,0>,
       x, <4,1,0>,
   0.9*y, <0,2,1>,
   1.0*y, <0,0,1>,
       x, <6,5,4>,
   2.0*y, <4,3,2>,
}

Into this:

   0.0, <0,1,2>,
   0.3, <1,5,0>,
   0.6, <4,1,0>,
   0.9, <0,2,1>,
   1.0, <0,0,1>,
   1.5, <6,5,4>,
   2.0, <4,3,2>,

You're only required to specify the first and last T value; the rest are
optional. In some cases that can make it easier to work with splines.

Rune
--
3D images and anims, include files, tutorials and more:
Rune's World:    http://rsj.mobilixnet.dk (updated Feb 16)
POV-Ray Users:   http://rsj.mobilixnet.dk/povrayusers/
POV-Ray Webring: http://webring.povray.co.uk


Post a reply to this message

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