artisynth.core.mechmodels
Interface CollisionData

All Known Subinterfaces:
DeformableCollisionData
All Known Implementing Classes:
DeformableCollisionDataBase, EmbeddedCollisionData, FemCollisionData, MFreeCollisionData, RigidBodyCollisionData, SkinCollisionData

public interface CollisionData


Method Summary
 int addConstraintInfo(Vertex3d vtx, Point3d constraintLoc, double weight, DeformableContactConstraint con)
          Adds the point information from this object's vertex and weight to the supplied constraint.
 Collidable getComponent()
          Returns the component involved in the collision
 PolygonalMesh getMesh()
          Gets the PolygonalMesh used for collisions
 void markMasters(Vertex3d vtx, boolean marked)
          Mark the master dynamic components of vertex vtx as being "used"
 int numActiveUnmarkedMasters(Vertex3d vtx)
          Count the number of "free" master components for vertex vtx.
 

Method Detail

getMesh

PolygonalMesh getMesh()
Gets the PolygonalMesh used for collisions

Returns:
mesh used for collisions

getComponent

Collidable getComponent()
Returns the component involved in the collision


addConstraintInfo

int addConstraintInfo(Vertex3d vtx,
                      Point3d constraintLoc,
                      double weight,
                      DeformableContactConstraint con)
Adds the point information from this object's vertex and weight to the supplied constraint.

Parameters:
vtx - vertex belonging to this object
constraintLoc - actual world location of constraint
weight - weight used in constraint
con - the constraint to modify
Returns:
the number of constraints added or modified

markMasters

void markMasters(Vertex3d vtx,
                 boolean marked)
Mark the master dynamic components of vertex vtx as being "used"


numActiveUnmarkedMasters

int numActiveUnmarkedMasters(Vertex3d vtx)
Count the number of "free" master components for vertex vtx. Used for determining whether or not a collision should be allowed.

Parameters:
vtx -