Hello everyone:

I am stumped by an error in the following code snippet. I am trying
to define a pair of line vertices and then join each of those, using an if
condition. It gives me error on line number 14, saying undefined variable
"verts". It probably is not recognizing the Point3f[] verts declared
on line 3. I have tried everything I could think of.
Could someone please help..



1.      for (;x<=M-3;) {
2.       for(;y<=M;) {
3.               Point3f[] verts= { new Point3f (array1[x], array1[x+1],
array1[x+2]),new Point3f(array[y+3], array[y+4], array[y+5])
4.              }; //defines a pair of vertices for a line
5.             y=y+3;
6.           }
7.        x=x+3;
8.      y=x;
9.      }
10.
11. for (;x<4;) {
12.     for (;y<=4;y++) {
13.             if(mat[x][y+1] == 1 || mat [y+1][x]==1) {
14.               la.setCoordinates (i, verts); //la= line array, ERROR LINE
15.             }
16.             i=i+2;
17.          }
18.     x++;
19.     y=x;
20. }

Thanks in advance and keep up the good work,
Aruna

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to