Hi everyone -

I am forced by using the Externalizable interface to have a default
constructor for my class that extends a TriangleStripArray.  However,
GeometryArrays do not have a default constructor, so I am wondering if
anyone knows a way of instantiating a GeometryArray without knowing its
size.  I have figured out that I can make the GeometryArray larger than I
need, and I will only have the needed validVertexCount, but the non-valid
vertices are still stored in the array (vertices that are never used, but
are taking up memory).  And I've also determined that you can't initially
create the GeometryArray smaller than necessary, because calling
setStripCounts on a TriangleStripArray throws an exception if the
vertexCount is less than the number of vertices listed in the stripCounts.
Any ideas or workarounds that anyone can think of?

Thanks a lot,
Nick

===========================================================================
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