public class MFreeNode3d extends FemNode3d implements MFreePoint3d, Boundable
FemNode3d.CoordTypeModelComponent.FilePathSaveType, ModelComponent.NavpanelVisibility| Modifier and Type | Field and Description |
|---|---|
static PropertyList |
myProps |
COMPUTE_ENERGY_EXPLICIT, COMPUTE_STRAIN_EXPLICIT, COMPUTE_STRESS_EXPLICIT, REST_POSITION_SCANNEDmyRenderCoordsenforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNamesCOPY_REFERENCES, REST_POSITIONTG_ARTICULATED, TG_DRAGGER, TG_PRESERVE_ORIENTATION, TG_SIMULATINGTRANSPARENT, TWO_DIMENSIONAL| Constructor and Description |
|---|
MFreeNode3d() |
MFreeNode3d(double x,
double y,
double z) |
MFreeNode3d(Point3d p) |
| Modifier and Type | Method and Description |
|---|---|
void |
computeCentroid(Vector3d centroid)
Computed the centroid of this element.
|
double |
computeCovariance(Matrix3d C)
Not implemented for FemNode3d.
|
double |
computeMassFromDensity() |
void |
connectToHierarchy(CompositeComponent hcomp)
Called by the system after this component, or an ancestor of this
component, is added to the component hierarchy (i.e., added as
a child of another CompositeComponent).
|
MFreeNode3d |
copy(int flags,
java.util.Map<ModelComponent,ModelComponent> copyMap)
Create a copy of this component.
|
RenderProps |
createRenderProps()
Factory method to create render properties appropriate to this object.
|
void |
disconnectFromHierarchy(CompositeComponent hcomp)
Called by the system after this component, or an ancestor of this
component, is removed from the component hierarchy (i.e., removed as a
child of its parent).
|
double |
distance(Point pnt) |
double |
distance(Point3d pos) |
PropertyList |
getAllPropertyInfo()
Returns a list giving static information about all properties exported by
this object.
|
FemNode3d[] |
getDependentNodes() |
Vector3d |
getDisplacement() |
Vector3d |
getFalseDisplacement() |
void |
getFalseDisplacement(Vector3d disp) |
Point3d |
getFalsePosition() |
Vector3d |
getFalseVelocity() |
double |
getInfluenceRadius() |
VectorNd |
getNodeCoordinates() |
Point3d |
getPoint(int idx)
Returns the
idx-th point associated with this element. |
Point3d |
getPosition()
Returns the current position of this point, in world coordinates.
|
Point3d |
getTrueDisplacement() |
Point3d |
getTruePosition() |
Vector3d |
getTrueVelocity() |
Vector3d |
getVelocity() |
double |
getWeight(Point3d pos) |
MFreeWeightFunction |
getWeightFunction() |
boolean |
intersects(MFreeNode3d node) |
boolean |
isInDomain(Point3d pos,
double tol) |
boolean |
isInRestDomain(Vector3d coords) |
boolean |
isRadial() |
int |
numPoints()
Returns the number of points associated with this element, if any, or
zero otherwise.
|
void |
prerender(RenderList list)
Called prior to rendering to allow this object to update the internal
state required for rendering (such as by caching rendering coordinates).
|
boolean |
reduceDependencies(double tol)
Removes all dependencies with have very low weights
( |w| <= tol )
|
void |
setDependentNodes(FemNode3d[] nodes,
VectorNd coords) |
void |
setFalsePosition(Point3d pos) |
void |
setFalseVelocity(Vector3d vel) |
void |
setNodeCoordinates(VectorNd coords) |
void |
setWeightFunction(RadialWeightFunction f) |
void |
transformGeometry(GeometryTransformer gt,
TransformGeometryContext context,
int flags)
Transforms the geometry of this component, using the geometry transformer
gtr to transform its individual attributes. |
void |
updateBounds(Vector3d pmin,
Vector3d pmax)
Update the minimum and maximum points for this object.
|
void |
updatePosState() |
void |
updateSlavePos() |
void |
updateVelState() |
addElementDependency, addEnergyDensity, addIndirectNeighbor, addLocalForce, addScaledStrain, addTransformableDependencies, clearDirector, clearIndirectNeighbors, clearRestDirector, computeRestDirector, computeRestDirector, deregisterNodeNeighbor, getAdjacentElements, getAdjacentShellElements, getAdjacentVolumeElements, getBackCoordinates, getBackForce, getBackInternalForce, getBackNode, getBackPosition, getBackRenderPosition, getBackRestPosition, getBackSolveIndex, getBackVelocity, getComputeEnergyDensity, getComputeStrain, getComputeStress, getCoordinates, getDirector, getDirector, getDirectorVel, getElementDependencies, getEnergyDensity, getFrameAttachment, getFrameNode, getIncompressIndex, getIndex, getIndirectNeighbor, getIndirectNeighborBySolveIndex, getIndirectNeighbors, getInternalForce, getLocalCoordinates, getLocalForce, getLocalPosition, getLocalRenderPosition, getLocalRestPosition, getLocalSolveIndex, getLocalVelocity, getMAPStrain, getMAPStress, getMaxShearStrain, getMaxShearStress, getNodeNeighbor, getNodeNeighborBySolveIndex, getNodeNeighbors, getRenderPosition, getRestDirector, getRestDirector, getRestPosition, getState, getStrain, getStress, getStressStrainMeasure, getTargetDisplacement, getVonMisesStrain, getVonMisesStress, hasDirector, invalidateRestDirectorIfNecessary, isActiveLocal, isRestDirectorExplicit, numAdjacentElements, numAdjacentShellElements, numAdjacentVolumeElements, removeElementDependency, resetEffectiveMass, resetRestPosition, scaleDistance, scan, scanItem, setAttached, setBackForce, setBackPosition, setBackRestPosition, setBackVelocity, setComputeEnergyDensity, setComputeStrain, setComputeStress, setDirector, setDirectorVel, setDynamic, setExplicitMass, setFrameNode, setIncompressIndex, setIndex, setLocalForce, setRestDirector, setRestPosition, setState, setTargetDisplacement, zeroEnergyDensity, zeroForces, zeroStrain, zeroStress, zeroStressStrainaddMass, clearMass, getMass, invalidateMassIfNecessary, isMassExplicit, scaleMass, setMass, unsetExplicitMassaddEffectiveMass, applyGravity, applyPosImpulse, createPointAttachment, getCopyReferences, getEffectiveMass, getEffectiveMass, getInverseMass, getMass, getMass, getVelDerivative, isDuplicatable, mulInverseEffectiveMassaddExternalForce, addForce, addForce, addPosImpulse, addPosJacobian, addScaledExternalForce, addScaledForce, addSolveBlock, addSolveBlocks, addTargetJacobian, addToPointVelocity, addToSolveBlockDiagonal, addVelJacobian, applyExternalForces, applyForces, createMassBlock, createSolveBlock, defaultRenderPropsAreNull, getEffectiveMassForces, getExternalForce, getForce, getForce, getJacobianType, getPointDamping, getPointDampingMode, getPosDerivative, getPosition, getPosState, getPosStateSize, getRenderCoords, getRenderProps, getSelection, getTargetActivity, getTargetPos, getTargetPosition, getTargetVel, getTargetVelocity, getTraceablePositionProperty, getTraceables, getVelocity, getVelState, getVelStateSize, hasForce, isMassConstant, isSelectable, render, resetTargets, setContactConstraint, setExternalForce, setForce, setForce, setPointDamping, setPointDampingMode, setPosition, setPosition, setPosState, setRandomForce, setRandomPosState, setRandomVelState, setRenderProps, setScaledExternalForce, setState, setTargetActivity, setTargetPos, setTargetPosition, setTargetVel, setTargetVelocity, setVelocity, setVelocity, setVelState, subForce, velocityLimitExceeded, zeroExternalForcesaddAttachmentRequest, addConstrainer, addMasterAttachment, getAttachment, getConstrainers, getMasterAttachments, getSolveIndex, hasState, isActive, isAttached, isControllable, isDynamic, isParametric, removeAttachmentRequest, removeConstrainer, removeMasterAttachment, setSolveIndex, transformGeometrygetRenderHints, isVisible, numSelectionQueriesNeeded, setVisible, updateRenderPropscheckFlag, checkName, checkNameUniqueness, clearFlag, clone, createTempFlag, getChildren, getGrandParent, getHardReferences, getName, getNameRange, getNavpanelVisibility, getNavpanelVisibility, getNumber, getParent, getProperty, getSoftReferences, hasChildren, isFixed, isMarked, isScanning, isSelected, isWritable, makeValidName, makeValidName, notifyParentOfChange, postscan, printReferences, recursivelyContained, recursivelyContains, removeTempFlag, setFixed, setFlag, setMarked, setName, setNavpanelVisibility, setNavpanelVisibility, setNumber, setParent, setScanning, setSelected, setWritable, updateReferences, writeequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRestPositiongetHardReferences, getName, getNavpanelVisibility, getNumber, getParent, getSoftReferences, hasState, isFixed, isMarked, isSelected, notifyParentOfChange, setFixed, setMarked, setName, setNumber, setParent, setSelected, setWritable, updateReferencesgetPropertygetChildren, hasChildrenpostscanisWritable, writeaddAttachmentRequest, removeAttachmentRequestaddConstrainer, addMasterAttachment, getAttachment, getConstrainers, getMasterAttachments, getSolveIndex, isActive, isAttached, isControllable, isDynamic, isParametric, removeConstrainer, removeMasterAttachment, setSolveIndexadvanceState, getAuxVarDerivative, getAuxVarState, getStateVersion, hasState, numAuxVars, requiresAdvance, setAuxVarStatetransformGeometry, transformPrioritypublic static PropertyList myProps
public MFreeNode3d()
public MFreeNode3d(Point3d p)
public MFreeNode3d(double x,
double y,
double z)
public PropertyList getAllPropertyInfo()
HasPropertiesgetAllPropertyInfo in interface HasPropertiesgetAllPropertyInfo in class FemNode3dpublic void setWeightFunction(RadialWeightFunction f)
public MFreeWeightFunction getWeightFunction()
public boolean isInRestDomain(Vector3d coords)
public boolean isInDomain(Point3d pos, double tol)
public boolean intersects(MFreeNode3d node)
public double getWeight(Point3d pos)
public MFreeNode3d copy(int flags, java.util.Map<ModelComponent,ModelComponent> copyMap)
CopyableComponentCOPY_REFERENCES
is set in flags, then any component referenced
by this component should itself be set to a copy. This
should be done first checking copyMap for an
existing copy of the referenced component. If there is no existing
copy, then a copy should be created by calling copy
recursively and adding the new copy to copyMap.copy in interface CopyableComponentcopy in class FemNode3dflags - flags to control the copyingcopyMap - map to possible existing instances of referenced
componentspublic Point3d getTrueDisplacement()
public void getFalseDisplacement(Vector3d disp)
public Vector3d getFalseDisplacement()
public Vector3d getDisplacement()
getDisplacement in class FemNode3dpublic Point3d getFalsePosition()
public void setFalsePosition(Point3d pos)
public Vector3d getFalseVelocity()
public void setFalseVelocity(Vector3d vel)
public FemNode3d[] getDependentNodes()
getDependentNodes in interface MFreePoint3dpublic void setDependentNodes(FemNode3d[] nodes, VectorNd coords)
setDependentNodes in interface MFreePoint3dpublic boolean reduceDependencies(double tol)
MFreePoint3dreduceDependencies in interface MFreePoint3dpublic VectorNd getNodeCoordinates()
getNodeCoordinates in interface MFreePoint3dpublic void setNodeCoordinates(VectorNd coords)
setNodeCoordinates in interface MFreePoint3dpublic void updateSlavePos()
updateSlavePos in interface MFreePoint3dpublic void updatePosState()
updatePosState in interface MFreePoint3dupdatePosState in class Pointpublic void updateVelState()
updateVelState in interface MFreePoint3dupdateVelState in class Pointpublic Point3d getTruePosition()
public Vector3d getTrueVelocity()
public boolean isRadial()
public double getInfluenceRadius()
public Point3d getPosition()
PointgetPosition in interface MFreePoint3dgetPosition in class Pointpublic Vector3d getVelocity()
getVelocity in class Pointpublic void prerender(RenderList list)
IsRenderablelist.addIfVisible (obj);
for each of the objects in question.prerender in interface IsRenderableprerender in class FemNode3dlist - list of objects to be renderedpublic RenderProps createRenderProps()
HasRenderPropscreateRenderProps in interface HasRenderPropscreateRenderProps in class Pointpublic void connectToHierarchy(CompositeComponent hcomp)
ModelComponentBase When this method is called, ModelComponent.getParent() will return the new
parent component; the system will have set this beforehand.
connectToHierarchy in interface ModelComponentconnectToHierarchy in class FemNode3dhcomp - hierarchy component to which this component,
or its ancestor, was attachedpublic void disconnectFromHierarchy(CompositeComponent hcomp)
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 ModelComponentdisconnectFromHierarchy in class FemNode3dhcomp - hierarchy component from which this component,
or its ancestor, was detachedpublic void computeCentroid(Vector3d centroid)
FemNode3dcomputeCentroid in interface BoundablecomputeCentroid in class FemNode3dcentroid - returns the computed centroid value.public double computeCovariance(Matrix3d C)
FemNode3dcomputeCovariance in interface BoundablecomputeCovariance in class FemNode3dC - returns the covariancepublic void updateBounds(Vector3d pmin, Vector3d pmax)
IsRenderableupdateBounds in interface BoundableupdateBounds in interface IsRenderableupdateBounds in class Pointpmin - minimum pointpmax - maximum pointpublic int numPoints()
FemNode3dpublic Point3d getPoint(int idx)
FemNode3didx-th point associated with this element.getPoint in interface BoundablegetPoint in class FemNode3didx - index of the point (must be on the range 0 to
Boundable.numPoints()).idx-th point associated with this element.
Must not be modified.public void transformGeometry(GeometryTransformer gt, TransformGeometryContext context, int flags)
TransformableGeometrygtr to transform its individual attributes. The
context argument supplies information about what other
components are currently being transformed, and also allows the
requesting of update actions to be performed after all transform called
have completed. The context is also the usual entity that calls
this method, from within its TransformGeometryContext.apply(maspack.geometry.GeometryTransformer, int)
method. The argument flags provides flags to specify
various conditions associated with the the transformation.
At present, the available flags are TransformableGeometry.TG_SIMULATING and
TransformableGeometry.TG_ARTICULATED.
This method is not usually called directly by applications.
Instead, it is typically called from within the
TransformGeometryContext.apply(maspack.geometry.GeometryTransformer, int) method of the context,
which takes care of the various operations needed for a
complete transform operation, including calling
TransformableGeometry.addTransformableDependencies(artisynth.core.modelbase.TransformGeometryContext, int) to collect other
components that should be transformed, calling
TransformableGeometry.transformGeometry(maspack.matrix.AffineTransform3dBase) for each component, notifying
component parents that the geometry has changed, and calling
any requested TransformGeometryActions. More details
are given in the documentation for
TransformGeometryContext.apply(maspack.geometry.GeometryTransformer, int).
TransformGeometryContext provides a number of
static convenience transform methods
which take care of building the context and calling
apply() for a specified set of components.
This method should not
generally call transformGeometry() for its descendant
components. Instead, descendants needing transformation should be
specified by adding them to the context in the method TransformableGeometry.addTransformableDependencies(artisynth.core.modelbase.TransformGeometryContext, int).
transformGeometry in interface TransformableGeometrytransformGeometry in class FemNode3dgt - transformer implementing the transformcontext - context information, including what other components
are being transformedflags - specifies conditions associated with the transformationpublic double computeMassFromDensity()
computeMassFromDensity in class FemNode3d