maspack.collision
Class MeshCollider

java.lang.Object
  extended by maspack.collision.MeshCollider
All Implemented Interfaces:
AbstractCollider

public class MeshCollider
extends java.lang.Object
implements AbstractCollider


Field Summary
static double maxErr
           
static int numIntNodes
           
 
Constructor Summary
MeshCollider()
           
 
Method Summary
 ContactInfo getContacts(PolygonalMesh mesh0, PolygonalMesh mesh1, boolean calculateLoops)
           
 double getEpsilon()
           
 int getNumextremaaxes()
          See setter.
 double getPointTolerance()
           
 double getRegionTolerance()
           
 void setEpsilon(double epsilon)
           
 void setNumextremaaxes(int numextremaaxes)
          Set the number of axes along which to take the extrema points when throwing out redundant contact points.
 void setPointTolerance(double tolerance)
           
 void setRegionTolerance(double regiontolerance)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

maxErr

public static double maxErr

numIntNodes

public static int numIntNodes
Constructor Detail

MeshCollider

public MeshCollider()
Method Detail

getEpsilon

public double getEpsilon()
Specified by:
getEpsilon in interface AbstractCollider

setEpsilon

public void setEpsilon(double epsilon)

getContacts

public ContactInfo getContacts(PolygonalMesh mesh0,
                               PolygonalMesh mesh1,
                               boolean calculateLoops)
Specified by:
getContacts in interface AbstractCollider

getPointTolerance

public double getPointTolerance()
Specified by:
getPointTolerance in interface AbstractCollider

setPointTolerance

public void setPointTolerance(double tolerance)
Specified by:
setPointTolerance in interface AbstractCollider

getRegionTolerance

public double getRegionTolerance()
Specified by:
getRegionTolerance in interface AbstractCollider

setRegionTolerance

public void setRegionTolerance(double regiontolerance)
Specified by:
setRegionTolerance in interface AbstractCollider

getNumextremaaxes

public int getNumextremaaxes()
See setter.


setNumextremaaxes

public void setNumextremaaxes(int numextremaaxes)
Set the number of axes along which to take the extrema points when throwing out redundant contact points. 0 = disabled.

Parameters:
numextremaaxes -