POV-Ray : Newsgroups : povray.advanced-users : Array Usage : Re: Array Usage Server Time
2 Nov 2024 13:17:41 EDT (-0400)
  Re: Array Usage  
From: Nieminen Mika
Date: 2 Aug 1999 08:07:43
Message: <37a58a0f@news.povray.org>
Perhaps the problem was too simple to a programmer like me to see it.

: To avoid this I made a second array nearly identical to the first with
: the exception that the first line of data was removed so I had different
: start points and end points

:    Connect (
:             <B_spline[ab][0], B_spline[ab][1], 0>, 0.1,
:             <C_spline[ab][0], C_spline[ab][1], 0>, 0.1 )

  Can't you just do it this way:

   Connect (
            <B_spline[ab][0], B_spline[ab][1], 0>, 0.1,
            <B_spline[ab+1][0], B_spline[ab+1][1], 0>, 0.1 )

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

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