com.jme.intersection
Class TrianglePickData

java.lang.Object
  extended by com.jme.intersection.PickData
      extended by com.jme.intersection.TrianglePickData

public class TrianglePickData
extends PickData

Pick data for triangle accuracy picking including sort by distance to intersection point.


Field Summary
 
Fields inherited from class com.jme.intersection.PickData
distance
 
Constructor Summary
TrianglePickData(Ray ray, TriMesh targetMesh, java.util.ArrayList<java.lang.Integer> targetTris, boolean checkDistance)
           
 
Method Summary
protected  float calculateDistance()
          For bounds picking this method returns the distance of the ray origin to the bound.
 
Methods inherited from class com.jme.intersection.PickData
getDistance, getRay, getTargetMesh, getTargetTris, setRay, setTargetMesh, setTargetTris
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrianglePickData

public TrianglePickData(Ray ray,
                        TriMesh targetMesh,
                        java.util.ArrayList<java.lang.Integer> targetTris,
                        boolean checkDistance)
Method Detail

calculateDistance

protected float calculateDistance()
Description copied from class: PickData
For bounds picking this method returns the distance of the ray origin to the bound. For triangle picking the it should return the distance to the closest hit triangle.

Overrides:
calculateDistance in class PickData
Returns:
distance to the target