public class BeamBody extends DeformableBody
RigidBody.DistanceSurfaceRendering, RigidBody.InertiaMethod
Collidable.Collidability, Collidable.Group
Modifier and Type | Field and Description |
---|---|
static PropertyList |
myProps |
dynamicVelInWorldCoords, myRenderFrame
enforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNames
All, AllBodies, Deformable, Rigid, Self
COPY_REFERENCES
TG_ARTICULATED, TG_DRAGGER, TG_PRESERVE_ORIENTATION, TG_SIMULATING
TRANSPARENT, TWO_DIMENSIONAL
Constructor and Description |
---|
BeamBody() |
BeamBody(PolygonalMesh mesh,
double density,
double len,
double E) |
Modifier and Type | Method and Description |
---|---|
void |
computeStiffnessFromIntegration() |
void |
computeStiffnessMatrix() |
PropertyList |
getAllPropertyInfo()
Returns a list giving static information about all properties exported by
this object.
|
void |
getDShape(Matrix3d Dshp,
int i,
Vector3d pos0) |
void |
getShape(Vector3d shp,
int i,
Vector3d pos0) |
double |
getStiffness() |
int |
numElasticCoords() |
void |
render(Renderer renderer,
int flags)
Render this object using the functionality of the supplied
Renderer . |
void |
setMaterial(FemMaterial mat) |
void |
setStiffness(double E) |
void |
updateStiffnessMatrix() |
addEffectivePointMass, addElasticForce, addExternalElasticForce, addPointForce, addPointForce, addPointMass, addPosImpulse, addPosJacobian, addScaledExternalElasticForce, addSolveBlock, addToPointVelocity, addVelJacobian, applyExternalForces, applyForces, computeDeformationGradient, computeDeformedFrame, computeDeformedFrame, computeDeformedFrameVel, computeDeformedPos, computeDeformedVel, computeElasticJacobian, computeLocalPointForceJacobian, computePointCoriolis, computePointLocation, computePointPosition, computePointVelocity, computeUndeformedFrame, computeUndeformedPos, computeWorldPointForceJacobian, createDefaultMaterial, createMassBlock, getDistanceGrid, getEffectiveMass, getEffectiveMassForces, getElasticForce, getElasticPos, getElasticPos, getElasticPos, getElasticVel, getElasticVel, getElasticVel, getExternalElasticForce, getForce, getInverseMass, getMass, getMassDamping, getMaterial, getPosDerivative, getPosState, getPosStateSize, getStiffnessDamping, getVelState, getVelStateSize, hasDistanceGrid, invalidateStiffness, isDeformable, mulInverseEffectiveMass, propertyChanged, setContactConstraint, setElasticForce, setElasticPos, setElasticPos, setElasticVel, setElasticVel, setExternalElasticForce, setForce, setMassDamping, setPosState, setStiffnessDamping, setVelState, zeroExternalForces, zeroForces
addConnector, addEffectiveInertia, allowCollision, applyGravity, centerPoseOnCenterOfMass, computeVolume, containsContactMaster, copy, createBox, createBox, createCylinder, createEllipsoid, createFromMesh, createFromMesh, createFromMesh, createFromMesh, createIcosahedralSphere, createRenderProps, createSphere, extrapolatePose, getCenterOfMass, getCenterOfMass, getCollidable, getCollidableAncestor, getCollidableIndex, getCollisionMesh, getConnectors, getCopyReferences, getDensity, getDensityRange, getDistanceGridMaxRes, getDistanceGridOBB, getDistanceGridRenderRanges, getDistanceGridRenderRangesRange, getDistanceGridRes, getDistanceSurfaceIso, getEffectiveInertia, getEffectiveMassForces, getFileTransform, getFrameMarkers, getInertia, getInertiaMethod, getMass, getMass, getMassRange, getMesh, getMeshFileName, getMeshFileTransform, getRenderDistanceGrid, getRenderDistanceSurface, getRotationalInertia, getRotationalInertia, getSurfaceMesh, getSurfaceMeshes, getVertexMasters, isCompound, isDuplicatable, isFileTransformRigid, isFreeBody, isMassConstant, isMeshModfied, mulInverseEffectiveMass, numSurfaceMeshes, prerender, removeConnector, resetEffectiveMass, scaleDistance, scaleMass, scaleMesh, scaleMesh, scan, setCenterOfMass, setCollidable, setCollidableIndex, setDensity, setDistanceGridMaxRes, setDistanceGridOBB, setDistanceGridRenderRanges, setDistanceGridRes, setDistanceSurfaceIso, setDynamic, setInertia, setInertia, setInertia, setInertia, setInertiaFromDensity, setInertiaFromMass, setInertiaMethod, setMass, setMesh, setMesh, setMesh, setMeshFileName, setPose, setRenderDistanceGrid, setRenderDistanceSurface, setRotationalInertia, setSurfaceMesh, setSurfaceMesh, transformGeometry, updateAttachmentPosStates, updateBounds, write
addExternalForce, addForce, addPointForce, addScaledExternalForce, addSolveBlocks, addTargetJacobian, addTransformableDependencies, computeAppliedWrench, computePointVelocity, computePointVelocity, createFrameAttachment, createPointAttachment, getAxisLength, getBodyForce, getBodyVelocity, getBodyVelState, getExternalForce, getForce, getForce, getFrameDamping, getFrameDampingMode, getJacobianType, getMoment, getOrientation, getOrientation, getPose, getPose, getPosition, getRotaryDamping, getRotaryDampingMode, getRotation, getSelection, getTargetActivity, getTargetOrientation, getTargetPos, getTargetPose, getTargetPosition, getTargetVel, getTargetVelocity, getTraceablePositionProperty, getTraceables, getTransForce, getVelocity, getVelocity, getWorldVelState, resetTargets, setAxisLength, setBodyVelocity, setExternalForce, setForce, setFrameDamping, setFrameDampingMode, setOrientation, setPose, setPosition, setRotaryDamping, setRotaryDampingMode, setRotation, setState, setTargetActivity, setTargetOrientation, setTargetPos, setTargetPose, setTargetPosition, setTargetVel, setTargetVelocity, setVelocity, setVelocity, subPointForce, subPointForce, transformPose, velocityLimitExceeded
addConstrainer, addMasterAttachment, getAttachment, getConstrainers, getMasterAttachments, getSolveIndex, hasState, isActive, isAttached, isControllable, isDynamic, isParametric, removeConstrainer, removeMasterAttachment, setAttached, setSolveIndex, transformGeometry
getRenderHints, getRenderProps, isSelectable, numSelectionQueriesNeeded, setRenderProps, updateRenderProps
checkFlag, checkName, checkNameUniqueness, clearFlag, clone, connectToHierarchy, createTempFlag, disconnectFromHierarchy, getChildren, getGrandParent, getHardReferences, getName, getNameRange, getNavpanelVisibility, getNavpanelVisibility, getNumber, getParent, getProperty, getSoftReferences, hasChildren, isConnectedToHierarchy, isFixed, isMarked, isSelected, isWritable, makeValidName, makeValidName, notifyParentOfChange, postscan, printReferences, recursivelyContained, recursivelyContains, removeTempFlag, setFixed, setFlag, setMarked, setName, setNavpanelVisibility, setNavpanelVisibility, setNumber, setParent, setSelected, updateReferences
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
transformPose
createFrameAttachment
createPointAttachment
addConstrainer, addMasterAttachment, checkFlag, clearFlag, getAttachment, getConstrainers, getMasterAttachments, getSolveIndex, isActive, isAttached, isControllable, isDynamic, isParametric, removeConstrainer, removeMasterAttachment, setAttached, setFlag, setSolveIndex
transformGeometry
public static PropertyList myProps
public BeamBody()
public BeamBody(PolygonalMesh mesh, double density, double len, double E)
public PropertyList getAllPropertyInfo()
HasProperties
getAllPropertyInfo
in interface HasProperties
getAllPropertyInfo
in class DeformableBody
public double getStiffness()
public void setStiffness(double E)
public void setMaterial(FemMaterial mat)
setMaterial
in class DeformableBody
public int numElasticCoords()
numElasticCoords
in class DeformableBody
public void updateStiffnessMatrix()
updateStiffnessMatrix
in class DeformableBody
public void computeStiffnessFromIntegration()
public void computeStiffnessMatrix()
public void getShape(Vector3d shp, int i, Vector3d pos0)
getShape
in class DeformableBody
public void getDShape(Matrix3d Dshp, int i, Vector3d pos0)
getDShape
in class DeformableBody
public void render(Renderer renderer, int flags)
IsRenderable
Renderer
.render
in interface IsRenderable
render
in class RigidBody
renderer
- provides the functionality used to perform the rendering.flags
- flags that may be used to control different
aspects of the rendering. Flags are defined in Renderer
and currently include
Renderer.HIGHLIGHT
and
Renderer.SORT_FACES
.