public class FemMesh extends FemMeshBase implements PullController.Pullable, Collidable
Collidable.DefaultCollidable
ModelComponent.NavpanelVisibility
CompositeComponent.NavpanelDisplay
myProps
enforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNames
Default, Deformable, RigidBody, Self
ARTICULATED, SIMULATING
TRANSLUCENT, TWO_DIMENSIONAL
Constructor and Description |
---|
FemMesh() |
FemMesh(FemModel3d fem) |
FemMesh(FemModel3d fem,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
applyForce(java.lang.Object orig,
Vector3d force)
Given the supplied force origin info and a force vector,
apply the force (typically sets an external force)
|
void |
connectToHierarchy()
Called by the system after this component is added to the
component hierarchy (i.e., when it is added as a child of another
CompositeComponent).
|
FemMesh |
copy(int flags,
java.util.Map<ModelComponent,ModelComponent> copyMap) |
CollisionData |
createCollisionData() |
static FemMesh |
createEmbedded(FemMesh surf,
MeshBase mesh) |
static FemMesh |
createEmbedded(FemMesh surf,
MeshBase mesh,
FemModel3d fem) |
static FemMesh |
createEmbedded(FemModel3d fem,
MeshBase mesh) |
void |
createSurface(FemModel.ElementFilter efilter,
java.util.Map<FemNode3d,FemMeshVertex> surfaceNodeMap) |
void |
disconnectFromHierarchy()
Called by the system after this component is removed from the component
hierarchy (i.e., when it is removed as a child of its parent).
|
PointAttachment |
getAttachment(int idx) |
double |
getMass() |
java.lang.Object |
getOriginData(MouseRayEvent ray)
Constructs force origin storage data given a mouse ray
(e.g.
|
Point3d |
getOriginPoint(java.lang.Object data)
Determines the world-coordinate point to which force will
be applied (used for determining magnitude of force)
|
double |
getPointRenderRadius() |
boolean |
hasNodeDependency(FemNode3d node)
Check if this mesh depends on a particular node
|
boolean |
isCollidable() |
boolean |
isPullable() |
boolean |
isSurfaceMesh() |
int |
numAttachments() |
void |
scan(ReaderTokenizer rtok,
java.lang.Object ref)
Scans this element from a ReaderTokenizer.
|
void |
setVertexAttachment(int vidx,
double[] weights,
FemNode3d[] nodes) |
void |
setVertexAttachment(int vidx,
PointAttachment attachment) |
getAllPropertyInfo, getColorMap, getColorMapMode, getColorRendering, getColorRenderingMode, getFem, getSelection, getStressPlotRange, getStressPlotRangeMode, getStressPlotRanging, getStressPlotRangingMode, numSelectionQueriesNeeded, prerender, render, resetStressPlotRange, setColorMap, setColorMapMode, setColorRendering, setColorRenderingMode, setFem, setMesh, setMeshFromInfo, setStressPlotRange, setStressPlotRangeMode, setStressPlotRanging, setStressPlotRangingMode
componentChanged, findComponent, get, get, getByNumber, getNavpanelDisplay, getNavpanelVisibility, getNumberLimit, hierarchyContainsReferences, indexOf, numComponents, postscan, scaleDistance, setDisplayMode, setNavpanelDisplay, transformGeometry, updateNameMap, updateSlavePos, updateSlaveVel
createRenderProps, getMesh, getVertex, numVertices, render, scaleMass, setDefaultValues, setMesh, setMesh, transformGeometry, transformGeometry, updateBounds, updatePosition
getRenderHints, getRenderProps, isSelectable, setRenderProps, updateRenderProps
checkFlag, checkName, checkNameUniqueness, clearFlag, clone, createTempFlag, getChildren, getGrandParent, getHardReferences, getName, getNameRange, getNavpanelVisibility, getNumber, getParent, getProperty, getSoftReferences, hasChildren, hasState, isFixed, isMarked, isSelected, isWritable, makeValidName, makeValidName, notifyParentOfChange, printReferences, recursivelyContained, recursivelyContains, removeTempFlag, setFixed, setFlag, setMarked, setName, setNavpanelVisibility, setNavpanelVisibility, setNumber, setParent, setSelected, updateReferences, write
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHardReferences, getName, getNavpanelVisibility, getNumber, getParent, getSoftReferences, hasState, isFixed, isMarked, isSelected, notifyParentOfChange, postscan, setFixed, setMarked, setName, setNumber, setParent, setSelected, updateReferences
getAllPropertyInfo, getProperty
getChildren, hasChildren
isWritable, write
public FemMesh()
public FemMesh(FemModel3d fem)
public FemMesh(FemModel3d fem, java.lang.String name)
public int numAttachments()
numAttachments
in class FemMeshBase
public PointAttachment getAttachment(int idx)
getAttachment
in class FemMeshBase
public void setVertexAttachment(int vidx, PointAttachment attachment)
public void setVertexAttachment(int vidx, double[] weights, FemNode3d[] nodes)
public static FemMesh createEmbedded(FemMesh surf, MeshBase mesh, FemModel3d fem)
public static FemMesh createEmbedded(FemModel3d fem, MeshBase mesh)
public void createSurface(FemModel.ElementFilter efilter, java.util.Map<FemNode3d,FemMeshVertex> surfaceNodeMap)
public void scan(ReaderTokenizer rtok, java.lang.Object ref) throws java.io.IOException
ModelComponentBase
write
.scan
in interface ModelComponent
scan
in interface Scannable
scan
in class SkinMeshBase
rtok
- Tokenizer from which to scan the elementref
- optional reference object which can be used for resolving references to
other objectsjava.io.IOException
- if an I/O or formatting error occuredpublic void connectToHierarchy()
ModelComponentBase
When this method is called, ModelComponent.getParent()
will return
the new parent component; the system will have set this beforehand.
connectToHierarchy
in interface ModelComponent
connectToHierarchy
in class FemMeshBase
public void disconnectFromHierarchy()
ModelComponentBase
When this
method is called, ModelComponent.getParent()
will still return this original
parent component; the system will set this to null
after.
disconnectFromHierarchy
in interface ModelComponent
disconnectFromHierarchy
in class FemMeshBase
public FemMesh copy(int flags, java.util.Map<ModelComponent,ModelComponent> copyMap)
copy
in class FemMeshBase
public boolean isSurfaceMesh()
public boolean hasNodeDependency(FemNode3d node)
public boolean isPullable()
isPullable
in interface PullController.Pullable
public java.lang.Object getOriginData(MouseRayEvent ray)
PullController.Pullable
getOriginData
in interface PullController.Pullable
public Point3d getOriginPoint(java.lang.Object data)
PullController.Pullable
getOriginPoint
in interface PullController.Pullable
public double getPointRenderRadius()
getPointRenderRadius
in interface PullController.Pullable
public void applyForce(java.lang.Object orig, Vector3d force)
PullController.Pullable
applyForce
in interface PullController.Pullable
public CollisionData createCollisionData()
createCollisionData
in interface Collidable
public boolean isCollidable()
isCollidable
in interface Collidable
public double getMass()
getMass
in interface Collidable