Hi,
I've defined a line as
LineArray line = new LineArray(2, LineArray.COORDINATES
|
LineArray.COLOR_3| LineArray.NORMALS);
and I've set this capability
line.setCapability( LineArray.ALLOW_INTERSECT );
line.setCapability( LineArray.ALLOW_COORDINATE_WRITE );
sline = new Shape3D(line);
sline.setCapability(Shape3D.ENABLE_PICK_REPORTING);
sline.setCapability(Shape3D.ALLOW_APPEARANCE_READ);
sline.setCapability(Shape3D.ALLOW_APPEARANCE_WRITE);
I want to mouse click on the line and change its appearance with the
method of the class
PickObject like in the TickTockPicking example.
PickObject pick = new PickObject(c,r);
path =
pick.pickClosest(evt.getX(),evt.getY(),PickObject.USE_GEOMETRY);
Shape3D shape = (Shape3D)
pick.pickNode(path,PickObject.SHAPE3D);
When I pick on the line the value contained in path and shape are always
null.
What's wrong?
Thank you.
--
Saluti, Balza
Visita la Martilla's home page a: http://members.tripod.com/~Martilla
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/