POV-Ray : Newsgroups : povray.general : Spline problem : Spline problem Server Time
19 Nov 2024 18:18:37 EST (-0500)
  Spline problem  
From: Andrew
Date: 19 Jan 2002 10:28:57
Message: <3c4990b9$1@news.povray.org>
OK, can someone tell me why this generates a parse error:

#declare Spline = spline {cubic_spline
                           -2/13, <-1,0,0>
                          -1/13, <0,0,0>
                          0,     <1,0,0>
                          1/13,  <5,0,0>
                          2/13, <8,0,0>
                          }

While this doesn't:

#declare Spline = spline {cubic_spline
                          -2/13, <-1,0,0>
                          (-1/13), <0,0,0>
                          0,     <1,0,0>
                          1/13,  <5,0,0>
                          2/13, <8,0,0>
                          }

The only difference between these two bits of code is the brackets
around -1/13.

I'm hopelessly confused as to why the brackets are necessary on that one
line, and that one line alone.


Post a reply to this message

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