hello
i have the following problem :
when I want to pick lines half of the times, it picks the wrong line
I prefer to pick on bounds. The problem is probably the bounds
I guess. I wonder if you just specify a LineArray and don't set
bounds. Then when doing picking on bounds, what bounds
are used for the lines? Because line picking works but not
well.
When I want to set bounds for the lines which should I use?
Ideally would be a cylinder. BoundingBox doesn't work either
because its axis aligned. Is there an easy way to set bounds
of a line?
I do the following :
iPickObject = new PickObject(iCanvas,iPickRoot);
iPickObject.setPickMode(PickObject.USE_BOUNDS);
iPickObject.setPickShapeMode(PickObject.SHAPE_APERTURE);
Point[] aperturepoints = new Point[]{new Point(-2,-2),new Point(2,-2),new
Point(2,2),new Point(-2,2)};
iPickObject.setPickAperture(aperturepoints);
and then when processing stimuli :
SceneGraphPath sgp = iPickObject.pickClosest(event.getX(),event.getY());
if (sgp!=null)
{
Node object = sgp.getObject();
GraphComponent data = (GraphComponent)object.getUserData();
}
please help
mattie
===========================================================================
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".