I guess, I ran across another bug in j3dfly serialization.
The problem appears in saving Shape3D object; its geometry list becomes altered.

Here are the details:

I create a Shape3D object and add a geometry node to it. At the moment
I am saving this shape, I varified that its list of geometries contain 1
object at index 0(zero). However, when I try to reload my scene graph,
this shape contains a geometry list with 2 node: null stands at
the 0(zero) index and the origional geometry now occupy index 1.
I am quite certain that this is not a bug in my program since
I never use any geometry setters with index argument.
It is just not in the design of my program.

As a result, my attempt to get this geometry via getGeometry()
returns null.
I hacked my code to avoid lengthy debuging of j3dfly serialization.
When I restroe a reference to the shape, I get the number of its
geoms and reset the first non-null geom to the zero index.
It works fine with this HACK. However, this bug might be very troublesome.

Boris

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