public class FemContactConstraint extends DeformableContactConstraintGeneric
DeformableContactConstraintBase.CompInfo, DeformableContactConstraintBase.FrameInfo, DeformableContactConstraintBase.PointInfo
BODY_FACE, EDGE_BODY, EDGE_EDGE, VERTEX_BODY, VERTEX_FACE
Constructor and Description |
---|
FemContactConstraint() |
FemContactConstraint(FemMeshVertex v0,
FemMeshVertex v1)
Creates a new contact constraint identified by three vertices.
|
FemContactConstraint(FemMeshVertex v0,
FemMeshVertex v1,
FemMeshVertex v2)
Creates a new contact constraint identified by three vertices.
|
FemContactConstraint(Vertex3d... vtxs)
Creates a new contact constraint identified by three vertices.
|
Modifier and Type | Method and Description |
---|---|
void |
getAuxStateOld(DataBuffer data) |
int |
numMyVertices() |
int |
numVertices() |
void |
setAuxStateOld(DataBuffer data,
FemModel3d model,
PolygonalMesh mesh0,
PolygonalMesh mesh1,
Collidable otherComponent) |
void |
setBodyFace(Vector3d nrml,
double mu,
FemMeshVertex v0,
FemMeshVertex v1,
FemMeshVertex v2,
double w0,
double w1,
double w2,
Vertex3d vbody,
RigidBody body,
Point3d loc,
double wrb)
Sets the constraint for rigidBody-deformable node-face contact
|
void |
setEdgeBody(Vector3d nrml,
double mu,
FemMeshVertex v0,
FemMeshVertex v1,
double w0,
double w1,
RigidBody body,
Point3d loc,
double wrb)
Set the constraint for a deformable-rigidBody edge-edge contact.
|
void |
setEdgeEdge(Vector3d nrml,
double mu,
FemMeshVertex v0,
FemMeshVertex v1,
FemMeshVertex v2,
FemMeshVertex v3,
double w0,
double w1,
double w2,
double w3)
Set the constraint for a deformable-deformable edge-edge contact.
|
void |
setEdgeEdge(Vector3d nrml,
double mu,
FemMeshVertex v0,
FemMeshVertex v1,
Point3d loc1,
double w0,
double w1,
Vertex3d v2,
Vertex3d v3,
Point3d loc2,
double w2,
double w3,
DeformableCollisionData otherData)
Set the constraint for a deformable-deformable edge-edge contact.
|
void |
setFace(Face f) |
void |
setVertexBody(Vector3d nrml,
double mu,
FemMeshVertex v0,
double w0,
RigidBody body,
Point3d loc,
double wrb)
Set the constraint for a deformable-rigidBody node-face contact.
|
void |
setVertexFace(Vector3d nrml,
double mu,
FemMeshVertex v0,
double w0,
Vertex3d v1,
Vertex3d v2,
Vertex3d v3,
Point3d loc2,
double w1,
double w2,
double w3,
DeformableCollisionData otherData)
Set the constraint for a deformable-deformable node-face contact.
|
void |
setVertexFace(Vector3d nrml,
double mu,
FemMeshVertex v0,
FemMeshVertex v1,
FemMeshVertex v2,
FemMeshVertex v3,
double w0,
double w1,
double w2)
Set the constraint for a deformable-deformable node-face contact.
|
void |
skipAuxState(DataBuffer data) |
void |
skipAuxStateOld(DataBuffer data) |
clearVertices, equals, getVertices, hashCode, print, setEdgeEdge, setEdgeRigidBody, setFaceRigidBody, setVertexDeformable, setVertexFace, setVertexRigidBody, setVertices, toString
addConstraintBlocks, addFrame, addFrictionConstraints, addPoint, beginSet, componentsChanged, endSet, getAuxState, getDerivative, getDistance, getFriction, getImpulse, getNormal, getSolveIndex, isActive, isAdded, isControllable, numFrames, numPoints, printConstraintInfo, setActive, setAdded, setAuxState, setBodyFace, setDistance, setEdgeBody, setEdgeEdge, setFriction, setImpulse, setSolveIndex, setVertexBody, setVertexFace, updateFriction
public FemContactConstraint()
public FemContactConstraint(FemMeshVertex v0, FemMeshVertex v1)
public FemContactConstraint(FemMeshVertex v0, FemMeshVertex v1, FemMeshVertex v2)
public FemContactConstraint(Vertex3d... vtxs)
public void setFace(Face f)
public void setEdgeEdge(Vector3d nrml, double mu, FemMeshVertex v0, FemMeshVertex v1, FemMeshVertex v2, FemMeshVertex v3, double w0, double w1, double w2, double w3)
public void setEdgeEdge(Vector3d nrml, double mu, FemMeshVertex v0, FemMeshVertex v1, Point3d loc1, double w0, double w1, Vertex3d v2, Vertex3d v3, Point3d loc2, double w2, double w3, DeformableCollisionData otherData)
public void setVertexFace(Vector3d nrml, double mu, FemMeshVertex v0, FemMeshVertex v1, FemMeshVertex v2, FemMeshVertex v3, double w0, double w1, double w2)
public void setVertexFace(Vector3d nrml, double mu, FemMeshVertex v0, double w0, Vertex3d v1, Vertex3d v2, Vertex3d v3, Point3d loc2, double w1, double w2, double w3, DeformableCollisionData otherData)
public void setBodyFace(Vector3d nrml, double mu, FemMeshVertex v0, FemMeshVertex v1, FemMeshVertex v2, double w0, double w1, double w2, Vertex3d vbody, RigidBody body, Point3d loc, double wrb)
public void setVertexBody(Vector3d nrml, double mu, FemMeshVertex v0, double w0, RigidBody body, Point3d loc, double wrb)
public void setEdgeBody(Vector3d nrml, double mu, FemMeshVertex v0, FemMeshVertex v1, double w0, double w1, RigidBody body, Point3d loc, double wrb)
public int numMyVertices()
public int numVertices()
public void skipAuxState(DataBuffer data)
skipAuxState
in interface DeformableContactConstraint
skipAuxState
in class DeformableContactConstraintBase
public void getAuxStateOld(DataBuffer data)
public void setAuxStateOld(DataBuffer data, FemModel3d model, PolygonalMesh mesh0, PolygonalMesh mesh1, Collidable otherComponent)
public void skipAuxStateOld(DataBuffer data)