|
![](/i/fill.gif) |
There is a bug in the vector code for dimensions other
than 2. This is a known, and long time, problem. I've
played around with the source code a bit in an attempt
to find the error -- it's clear it is getting confused
about the dimensionality of the vector (in the case
of 2-d), but I didn't find the precise error.
A manifestation of this is the following won't work :
#declare UV = <1, 2>;
#declare V = uv.v;
For dimension larger than 3, there are other problems.
Dan
P.S. I believe I've seen the correction posted somewhere,
but I am not sure where.
Sally Rothenberg wrote:
>
> Jeffrey,
>
> I'm not sure this is the same problem but I noticed I can't seem to write to
> a single
> element in my UV lattice (2 dim array) of vectors, although I can read:
>
> #local nx = clat[U][V].x;
>
> My workaround was:
>
> #local clat[U][V] = <cc+1,0,0>;
>
> If you are initializing in a nested loop, you might try:
>
> #local clat[U][V] = <xvalue,yvalue,zvalue>;
>
> If this has something to do with my using version 3.1 rather than 3.1a, I'd
> sure like to
> know about it !
>
> Hope this helps,
> Sally
>
> Jeffrey H. Zimmer wrote in message <3629c15f.0@news.povray.org>...
> >Downloaded and began playing with 3.1 recently. The new arrays look like a
> >great addition (not to mention the new editor). However I'm having
> problems
> >initializing a two-dimensional array (128 x 128) with vectors using a
> nested
> >while loop (one for x, the other for y). Has anyone else dealt with this?
> >
> >Thanks,
> >Jeff
> >
> >
--
http://www.flash.net/~djconnel/
Post a reply to this message
|
![](/i/fill.gif) |