POV-Ray : Newsgroups : povray.advanced-users : Array Usage : Re: Array Usage Server Time
2 Nov 2024 13:19:39 EDT (-0400)
  Re: Array Usage  
From: Ken
Date: 2 Aug 1999 09:01:34
Message: <37A595FB.ED0808E3@pacbell.net>
Nieminen Mika wrote:
> 
>   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 )

Of course I could and it works exaclty as I would expect it to. :}

You know I had tried something similar but in the wrong part of the script:

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

Which issues a subscript out of range error. I had the right idea just the
wrong method.

Thanks Warp,

-- 
Ken Tyler
  
mailto://tylereng@pacbell.net
http://home.pacbell.net/tylereng/links.htm


Post a reply to this message

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