Hi
I sometimes get the following Exception:
java.nio.BufferUnderflowException
at java.nio.Buffer.nextGetIndex(Buffer.java:398)
at java.nio.DirectFloatBufferU.get(DirectFloatBufferU.java:205)
at com.xith3d.scenegraph.GeomNioFloatData.get(GeomNioFloatData.java:80)
at com.xith3d.scenegraph.GeomContainer.getCoordinate(GeomContainer.java:1197)
at com.xith3d.scenegraph.GeomContainer.getVertex(GeomContainer.java:1337)
at com.xith3d.spatial.bounds.Sphere.compute(Sphere.java:317)
at com.xith3d.scenegraph.Node.updateBounds(Node.java:358)
at com.xith3d.scenegraph.Node.setParent(Node.java:283)
at com.xith3d.scenegraph.Group.addChild(Group.java:83)
at objects.Tree.TreeGenerator.calculateSimplification(TreeGenerator.java:253)
at objects.Tree.TreeGenerator$1.run(TreeGenerator.java:325)
It seems as if this is a problem with my Geometry, but I’m wondering, because it doesn’t get thrown, when I create the geom or add Geometry to it, nor when I add the Geometry to the Shape, but when the Shape get’s added to the Scenegraph. This is also the same time it get’s live. Mmh… maybe this could be the problem…
But anyways if I add wrong data shouldn’t there be an error-message earlier?
I’d also like to know what I’m doing wrong (as I said it sometimes works - even at the same point, but I use random generated vertex-data, so this is hard to debug (without risking a not readable output)) if somebody has an idea, please tell me.
Arne
