com.jme3.collision.bih
Class BIHTree

java.lang.Object
  extended by com.jme3.collision.bih.BIHTree
All Implemented Interfaces:
Savable, CollisionData, java.lang.Cloneable

public class BIHTree
extends java.lang.Object
implements CollisionData


Field Summary
static int MAX_TREE_DEPTH
           
static int MAX_TRIS_PER_NODE
           
 
Constructor Summary
BIHTree()
           
BIHTree(Mesh mesh)
           
BIHTree(Mesh mesh, int maxTrisPerNode)
           
 
Method Summary
 int collideWith(Collidable other, Matrix4f worldMatrix, BoundingVolume worldBound, CollisionResults results)
           
 void construct()
           
 void getTriangle(int index, Vector3f v1, Vector3f v2, Vector3f v3)
           
 void read(JmeImporter im)
           
 void swapTriangles(int index1, int index2)
           
 void write(JmeExporter ex)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_TREE_DEPTH

public static final int MAX_TREE_DEPTH
See Also:
Constant Field Values

MAX_TRIS_PER_NODE

public static final int MAX_TRIS_PER_NODE
See Also:
Constant Field Values
Constructor Detail

BIHTree

public BIHTree(Mesh mesh,
               int maxTrisPerNode)

BIHTree

public BIHTree(Mesh mesh)

BIHTree

public BIHTree()
Method Detail

construct

public void construct()

getTriangle

public void getTriangle(int index,
                        Vector3f v1,
                        Vector3f v2,
                        Vector3f v3)

swapTriangles

public void swapTriangles(int index1,
                          int index2)

collideWith

public int collideWith(Collidable other,
                       Matrix4f worldMatrix,
                       BoundingVolume worldBound,
                       CollisionResults results)
Specified by:
collideWith in interface CollisionData

write

public void write(JmeExporter ex)
           throws java.io.IOException
Specified by:
write in interface Savable
Throws:
java.io.IOException

read

public void read(JmeImporter im)
          throws java.io.IOException
Specified by:
read in interface Savable
Throws:
java.io.IOException