Aruna,
I don't know whether this will work, but try declaring verts outside of the
for loops, and define it inside the for loop.
perhaps, like this:
0. Point3f[2] verts;
1. for (;x<=M-3;) {
2. for(;y<=M;) {
3. 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. }
Ajit
____________________________________________________________________
Get free email and a permanent address at http://www.amexmail.com/?A=1
===========================================================================
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".