public class FemGeometryTransformer extends DeformationTransformer
GeometryTransformer.Constrainer, GeometryTransformer.UndoState, GeometryTransformer.UniformScalingConstrainer| Constructor and Description |
|---|
FemGeometryTransformer(FemModel3d fem)
Creates a FemGeometry transformer for the specified FEM model
|
| Modifier and Type | Method and Description |
|---|---|
void |
getDeformation(Vector3d p,
Matrix3d F,
Vector3d r)
Computes the deformed position
f(r) and deformation
gradient F for a given reference point r in
undeformed coordinates. |
double |
getMaxDistance(double maxd)
Queries the maximum distance beyond which the deformation field is not
applied.
|
void |
setMaxDistance(double maxd)
Set a maximum distance
maxd (in the rest configuration) beyond
which the deformation field is not applied. |
computeLocalTransforms, computeTransform, computeTransform, computeTransform, computeTransform, computeTransformNormal, computeTransformPnt, computeTransformVec, getInverse, isAffine, isInvertible, isRigidcomputeLinearizedTransform, computeLocalAffineTransform, computeTransform, create, getUndoDataSize, isReflecting, isRestoring, isSaving, popRestoreData, restoreObject, saveObject, setUndoState, transform, transform, transform, transform, transform, transform, transform, transform, transform, transform, transform, transform, transformNormal, transformNormal, transformPnt, transformPnt, transformVec, transformVec, transformWorld, transformWorldpublic FemGeometryTransformer(FemModel3d fem)
fem - FEM model associated with the transformerpublic void setMaxDistance(double maxd)
maxd (in the rest configuration) beyond
which the deformation field is not applied. Specifically, no deformation
is applied at points whose rest distance from the FEM position exceeds
maxd. A negative value implies to maximum distance is in
effect. The default value is -1.maxd - maximum rest distancegetMaxDistancepublic double getMaxDistance(double maxd)
setMaxDistancepublic void getDeformation(Vector3d p, Matrix3d F, Vector3d r)
f(r) and deformation
gradient F for a given reference point r in
undeformed coordinates.getDeformation in class DeformationTransformerp - if non-null, returns the deformed positionF - if non-null, returns the deformation gradientr - reference point in undeformed coordinates