POV-Ray : Newsgroups : povray.general : Spline identifiers : Re: Spline identifiers Server Time
4 Aug 2024 10:15:20 EDT (-0400)
  Re: Spline identifiers  
From: LibraryMan
Date: 29 May 2003 16:15:01
Message: <web.3ed6693ca160507a738e706a0@news.povray.org>
LibraryMan wrote:
>In the section of the docs about spline identifiers (6.1.9), what is the
>significance of the reference numbers (i.e., the float values that are in
>increments of 0.25) in the example below:
>#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>
>  }
>
>then in the section 6.1.9.1, they give this example:
>#declare myspline = spline {
>      1, <4,5>
>      3, <5,5>
>      5, <6,5>
>  }
>
>  Foo(myspline, 2)
>
>I guess what I'm asking is, what is the significance of the reference
>numbers (if that's what they are) being 0.25 apart, vs. being odd numbers?
>It further confuses me that in the Foo macro, a `2' is thrown in as a
>parameter, which I don't see in the spline identifier declaration....
>What's up with this?
>TIA,
>LibraryMan
>


Now I finally get it; the reference value was being used by the counter in
the macro -- it helps to look at the WHOLE example! Duhhh... ;-)


Post a reply to this message

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