POV-Ray : Newsgroups : povray.general : Length along a spline : Re: Length along a spline Server Time
20 Nov 2024 06:44:57 EST (-0500)
  Re: Length along a spline  
From: Trevor Quayle
Date: 17 Oct 2001 15:46:02
Message: <3bcddffa$1@news.povray.org>
In 3.5, you would define a spline as follows:

#declare MySpline =
spline {cubic_spline
    -.25, <0,0,-1>
    0.00, <1,0,0>
    0.25, <0,0,1>
    0.50, <-1,0,0>
    0.75, <0,0,-1>
    1.00, <1,0,0>
    1.25, <0,0,1>
  }

And implement it using MySpline(val)

Does val not indicate the position along the spline, i.e, 0.1 would be 10%
along the length of the spline etc.?

-tgq


Post a reply to this message

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