Hi all,
Can someone please help me with the NullPointerException that
I am getting.
This is what I am trying to do:
Suppose I load a VRML object(house) into the scene. Then I want
to use a plane to cut this object(house) and get the intersection
points.
But instead of a plane I am using a very thin box (upper, lower)
because I dont know how to do the same with a plane. This is the
part of my code
PickTool pickTool = new PickTool(pickBG);
pickTool.setMode(PickTool.GEOMETRY_INTERSECT_INFO);
BoundingBox bounds = new BoundingBox(lower, upper);
PickBounds pickShape = new PickBounds(bounds);
pickTool.setShape(pickShape, lower);
pickResult = pickTool.pickAllSorted();
This is where I get this NullPointerException:
-------------------------------------------
Exception occurred during event dispatching:
java.lang.NullPointerException
at
com.sun.j3d.utils.picking.PickIntersection.setPointCoordinatesVW(PickIntersection.java:332)
at com.sun.j3d.utils.picking.PickResult.intersectTri(PickResult.java:966)
at com.sun.j3d.utils.picking.PickResult.intersectTA(PickResult.java:1208)
at com.sun.j3d.utils.picking.PickResult.intersect(PickResult.java:758)
at com.sun.j3d.utils.picking.PickResult.generateIntersections(PickResult.java:600)
at com.sun.j3d.utils.picking.PickResult.numIntersections(PickResult.java:387)
at com.sun.j3d.utils.picking.PickTool.pickGeomAllSortedIntersect(PickTool.java:811)
at com.sun.j3d.utils.picking.PickTool.pickAllSorted(PickTool.java:489)
at matrix.client.PrivacyDistance.<init>(PrivacyDistance.java:40)
-------------------------------------------
Thanks
Tina
===========================================================================
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".