com.jme.intersection
Class TrianglePickResults
java.lang.Object
com.jme.intersection.PickResults
com.jme.intersection.TrianglePickResults
public class TrianglePickResults
- extends PickResults
TrianglePickResults creates a PickResults object that calculates picking to
the triangle accuracy. PickData objects are added to the pick list as they
happen, these data objects refer to the two meshes, as well as their triangle
lists. While TrianglePickResults defines a processPick method, it is empty
and should be further defined by the user if so desired.
NOTE: Only TriMesh objects may obtain triangle accuracy, all others will
result in Bounding accuracy.
- Version:
- $Id: TrianglePickResults.java,v 1.2 2004/10/14 01:23:12 mojomonkey
Exp $
- Author:
- Mark Powell
Method Summary |
void |
addPick(Ray ray,
Geometry g)
addPick adds a Geometry object to the pick list. |
void |
processPick()
processPick will handle processing of the pick list. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TrianglePickResults
public TrianglePickResults()
addPick
public void addPick(Ray ray,
Geometry g)
addPick
adds a Geometry object to the pick list. If the
Geometry object is not a TriMesh, the process stops here. However, if the
Geometry is a TriMesh, further processing occurs to obtain the triangle
lists that the ray passes through.
- Specified by:
addPick
in class PickResults
- Parameters:
ray
- the ray that is doing the picking.g
- the Geometry to add to the pick list.- See Also:
PickResults.addPick(Ray, Geometry)
processPick
public void processPick()
processPick
will handle processing of the pick list. This
is very application specific and therefore left as an empty method.
Applications wanting an automated picking system should extend
TrianglePickResults and override this method.
- Specified by:
processPick
in class PickResults
- See Also:
PickResults.processPick()