Note : This bug is transfered from BugTraq : BugId 4720938
Currently all vertices pass in IndexedGeometryArray
are taken into account in computeBoundingBox()
We should only consider vertices actually reference
by index array.
Date: Thu, 25 Jul 2002 09:45:08 -0600
From: White Morph
I have 2 polygons, each uses GeometryInfo to generate its indexedGeometryArray.
A BranchGroup is created to add both Shape3D objects into it. There are some
problems: (please see my code attached, you can try)
1. if I just add either of the 2 Shape3D objects into the BranchGroup, the
bounding center is just the same as I add all of them into the group, so I
guess the Java3D class calculate the bounding center using all of the vertices
instead of only the vertices the Geometry object refers to.
2. when I just add one of the polygons into the group, the picking for this
polygon is correct, but if I add both of them into the group, the picking for
the first one is not correct, the second one is correct.
3. Even when I just add one polygon into the group, if I use
PickCanvas.setShape(PickPoint, startPoint) before I use pickAllSorted(). I got a
Runtime exception: java.lang.RuntimeException: PointArray0
Could you please try my code? Did I have sth wrong or else? Thank you very much!