POV-Ray : Newsgroups : povray.beta-test : Filling in T values in splines : Re: Filling in T values in splines Server Time
30 Jul 2024 04:12:10 EDT (-0400)
  Re: Filling in T values in splines  
From:
Date: 25 Feb 2002 03:18:13
Message: <sfsj7ugi4dca42iahro07hs53dhhs378jm@4ax.com>
On Sun, 24 Feb 2002 03:13:34 +0100, "Rune" <run### [at] mobilixnetdk>
wrote:
> My question is - is the below syntax too ugly or would it be acceptable for
> a macro included in the POV-Ray distribution?
>
> #declare SplineArray =
> array[7*2] {
>   0.0*y, <0,1,2>,
>        x, <1,5,0>,
>        x, <4,1,0>,

I don't like those vectors at begining. What about something like :

spline{
  cubic_spline
  SplineFrom(0)
  SplineTo(.9,array[4]{<0,1,2>,<1,5,0>,<4,1,0>,<0,2,1>})
  SplineFrom(1)
  SplineTo(2,array[3]{<0,0,1>,<6,5,4>,<4,3,2>})
}

ABX


Post a reply to this message

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