Thanks for the reply. In this case ( I've solved it since I wrote ), it was
a case of my own frustrations getting the better of me. I was using the
geometries incorrectly, and needed a break. Sorry to bother the group.
-----Original Message-----
From: Uma Sabada [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 01, 2000 2:14 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] GeometryArray troubles...
Barry:
What is the index you are using in the call setCoordinates(int
index, Point3f coordinates[]) ? Is this index within the
vertexCount that you set when you create the GeometryArray
object? Right now there is no check to make sure that index +
length of the coordinates[] <= vertexCount. That may be the
problem.
-Uma
Java3D Team
----- Begin Included Message -----
>From [EMAIL PROTECTED] Tue Feb 1 08:19:46 2000
MIME-Version: 1.0
Date: Tue, 1 Feb 2000 12:03:42 -0330
From: Barry Walsh <[EMAIL PROTECTED]>
Subject: [JAVA3D] GeometryArray troubles...
To: [EMAIL PROTECTED]
I have had great troubles with GeometryArrays since 1.2B1.
Basically, I the message is as follows:
ArrayIndexOutOfBoundsException
at
javax.media.j3d.GeometryArrayRetained.setCoordinates(GeometryArrayRetained.j
ava:2011)
at javax.media.j3d.GeometryArray.setCoordinates(GeometryArray.java:872)
at .... ( the rest is from my own code)...
I get similar messages with IndexedQuadArrays and QuadArrays, regardless of
size. I have reduced the vertexFormat for each to coordinates only, and I
have checked the Point3f[] arrays to ensure that they are sizes that should
work correctly for these geometries.
Can anyone tell me what this GeometryArrayRetained class does?? It seems
that it tries to use an array of size 6 * the number of individual points in
my geometryArray.... Has anyone else had this trouble?
Cheers,
B.
----------------------------------------------------------------------------
-------
Oceanic Consulting Corporation
P.O. Box 28009
St. John's, NF, Canada
A1B 4J8
(709) 722-9060/9064(fax) http://www.oceaniccorp.com
----------------------------------------------------------------------------
-------
===========================================================================
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".
----- End Included Message -----
===========================================================================
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".