public class BeamBody extends DeformableBody
RigidBody.InertiaMethod
Collidable.DefaultCollidable
ModelComponent.NavpanelVisibility
Modifier and Type | Field and Description |
---|---|
static PropertyList |
myProps |
dynamicVelInWorldCoords, myRenderFrame
enforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNames
COPY_REFERENCES
Default, Deformable, RigidBody, Self
ARTICULATED, SIMULATING
TRANSLUCENT, TWO_DIMENSIONAL
Constructor and Description |
---|
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(GLRenderer renderer,
int flags)
Render this object using Open GL via the JOGL.
|
void |
setMaterial(FemMaterial mat) |
void |
setStiffness(double E) |
void |
updateStiffnessMatrix() |
addPointForce, addPosImpulse, addPosJacobian, addSolveBlock, addVelJacobian, applyForces, computeDeformationGradient, computeDeformedFrame, computeDeformedFrame, computeDeformedFrameVel, computeDeformedFrameVel, computeDeformedPos, computeDeformedVel, computeElasticJacobian, computeElasticJacobian, computePointPosition, computePointVelocity, computeUndeformedFrame, computeUndeformedPos, createDefaultMaterial, createMassBlock, createSolveBlock, getElasticForce, getElasticPos, getElasticPos, getElasticPos, getElasticVel, getElasticVel, getElasticVel, getForce, getInverseMass, getMass, getMassDamping, getMassForces, getMaterial, getPosDerivative, getPosState, getPosStateSize, getStiffnessDamping, getVelState, getVelStateSize, setElasticPos, setElasticPos, setElasticVel, setElasticVel, setForce, setForcesToExternal, setMassDamping, setPosState, setState, setStiffnessDamping, setVelState, zeroExternalForces, zeroForces
addScaledVelocity, addVelocity, applyForce, applyGravity, applyPosImpulse, computeVolume, copy, createBox, createCollisionData, createCylinder, createEllipsoid, createFromMesh, createFromMesh, createFromMesh, createFromMesh, createRenderProps, createSphere, extrapolatePose, findFreeAttachedBodies, getCenterOfMass, getCenterOfMass, getCopyReferences, getDensity, getDensityRange, getFrameMarkers, getInertia, getInertiaMethod, getMass, getMass, getMassRange, getMesh, getMeshFileName, getMeshFileTransform, getOriginData, getOriginPoint, getPointRenderRadius, getRelativePoses, getRotationalInertia, getRotationalInertia, getSurfaceMesh, isCollidable, isDuplicatable, isMassConstant, isPullable, prerender, scaleDistance, scaleMass, scaleMesh, scan, setBodyVelocity, setCenterOfMass, setDensity, setDynamic, setInertia, setInertia, setInertia, setInertia, setInertiaFromDensity, setInertiaFromMass, setInertiaMethod, setMass, setMesh, setMesh, setMeshFileName, setMeshFileTransform, setPose, setPose, setPosition, setRelativePoses, setRotation, setRotationalInertia, setState, setState, setSurfaceMesh, setSurfaceMesh, setVelocity, transformGeometry, transformGeometry, updateAttachmentPosStates, updateBounds, updatePose, write
addExternalForce, addForce, addScaledExternalForce, addSolveBlocks, addTargetJacobian, computeAppliedWrench, computeAppliedWrench, computePointVelocity, drawAxes, getAxisLength, getBodyForce, getBodyVelocity, getBodyVelState, getExternalForce, getForce, getForce, getFrameDamping, getFrameDampingMode, getJacobianType, getMoment, getOrientation, getPose, getPose, getPosition, getRotaryDamping, getRotaryDampingMode, getRotation, getSelection, getState, getState, getTargetActivity, getTargetOrientation, getTargetPos, getTargetPose, getTargetPosition, getTargetVel, getTargetVelocity, getTracables, getTracingProbe, getTransForce, getVelocity, getVelocity, getWorldVelState, resetTargets, setAxisLength, setExternalForce, setForce, setFrameDamping, setFrameDampingMode, setOrientation, setRotaryDamping, setRotaryDampingMode, setTargetActivity, setTargetOrientation, setTargetPos, setTargetPose, setTargetPosition, setTargetVel, setTargetVelocity, setVelocity, velocityLimitExceeded
addMasterAttachment, getAttachment, getMasterAttachments, getSolveIndex, hasState, isActive, isAttached, isControllable, isDynamic, isParametric, removeMasterAttachment, setAttached, setSolveIndex
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, 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
connectToHierarchy, disconnectFromHierarchy, getHardReferences, getName, getNavpanelVisibility, getNumber, getParent, getSoftReferences, hasState, isFixed, isMarked, isSelected, notifyParentOfChange, postscan, setFixed, setMarked, setName, setNumber, setParent, setSelected, updateReferences
getProperty
getChildren, hasChildren
isWritable
addMasterAttachment, checkFlag, clearFlag, getAttachment, getMasterAttachments, getSolveIndex, isActive, isAttached, isControllable, isDynamic, isParametric, removeMasterAttachment, setAttached, setFlag, setSolveIndex
public static PropertyList myProps
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(GLRenderer renderer, int flags)
GLRenderable
render
in interface GLRenderable
render
in class RigidBody
renderer
- renderer object which is used to perform the rendering. Provides pointers
to GL and GLU, along with helper functions.flags
- supplies flags that may be used to control different
aspects of the rendering. Flags are defined in GLRenderer
and currently include
GLRenderer.SELECTED
,
GLRenderer.VERTEX_COLORING
,
GLRenderer.HSV_COLOR_INTERPOLATION
,
GLRenderer.SORT_FACES
, and
GLRenderer.CLEAR_MESH_DISPLAY_LISTS
.