public class ParticleMeshConstraint extends ParticleConstraintBase implements ScalableUnits
ModelComponent.FilePathSaveType, ModelComponent.NavpanelVisibility| Modifier and Type | Field and Description |
|---|---|
static PropertyList |
myProps |
enforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNamesTRANSPARENT, TWO_DIMENSIONAL| Constructor and Description |
|---|
ParticleMeshConstraint() |
ParticleMeshConstraint(Particle p,
PolygonalMesh mesh) |
ParticleMeshConstraint(Particle p,
PolygonalMesh mesh,
java.lang.String fileName) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
defaultRenderPropsAreNull() |
PropertyList |
getAllPropertyInfo()
Returns a list giving static information about all properties exported by
this object.
|
PolygonalMesh |
getMesh() |
boolean |
getNagataInterpolation() |
void |
render(Renderer renderer,
int flags)
Render this object using the functionality of the supplied
Renderer. |
void |
scaleDistance(double s)
Scales all distance coordinates.
|
void |
scaleMass(double s)
Scales all mass units.
|
void |
setMesh(PolygonalMesh mesh,
java.lang.String fileName,
AffineTransform3dBase X) |
void |
setNagataInterpolation(NagataInterpolator interp) |
void |
updateBounds(Vector3d min,
Vector3d max)
Update the minimum and maximum points for this object.
|
double |
updateConstraints(double t,
int flags)
Updates the current set of constraints, and returns the maximum
penetration
> 0 associated with all of them. |
addBilateralConstraints, addParticle, addParticles, addUnilateralConstraints, getBilateralForces, getBilateralInfo, getBilateralSizes, getCompliance, getConstrainedComponents, getDamping, getParticle, getPenetrationTol, getSoftReferences, getState, getUnilateralForces, getUnilateralInfo, getUnilateralSizes, isEngaged, isUnilateral, numParticles, removeParticle, setBilateralForces, setCompliance, setDamping, setPenetrationTol, setState, setUnilateral, setUnilateralForces, updateReferences, zeroForcescopy, createRenderProps, getRenderHints, getRenderProps, getSelection, isSelectable, numSelectionQueriesNeeded, prerender, setRenderPropsaddFrictionConstraints, getFrictionForces, getFrictionState, getUnilateralState, hasState, maxFrictionConstraintSets, setFrictionForces, setFrictionState, setUnilateralStatecheckFlag, checkName, checkNameUniqueness, clearFlag, clone, connectToHierarchy, createTempFlag, disconnectFromHierarchy, getChildren, getGrandParent, getHardReferences, getName, getNameRange, getNavpanelVisibility, getNavpanelVisibility, getNumber, getParent, getProperty, hasChildren, isFixed, isMarked, isScanning, isSelected, isWritable, makeValidName, makeValidName, notifyParentOfChange, postscan, printReferences, recursivelyContained, recursivelyContains, removeTempFlag, scan, setFixed, setFlag, setMarked, setName, setNavpanelVisibility, setNavpanelVisibility, setNumber, setParent, setScanning, setSelected, setWritable, writeequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnectToHierarchy, disconnectFromHierarchy, getHardReferences, getName, getNavpanelVisibility, getNumber, getParent, hasState, isFixed, isMarked, isSelected, notifyParentOfChange, scan, setFixed, setMarked, setName, setNumber, setParent, setSelected, setWritablegetPropertygetChildren, hasChildrenpostscanisWritable, writeadvanceState, getAuxVarDerivative, getAuxVarState, getStateVersion, numAuxVars, requiresAdvance, setAuxVarStatepublic static PropertyList myProps
public ParticleMeshConstraint()
public ParticleMeshConstraint(Particle p, PolygonalMesh mesh)
public ParticleMeshConstraint(Particle p, PolygonalMesh mesh, java.lang.String fileName)
public PropertyList getAllPropertyInfo()
HasPropertiesgetAllPropertyInfo in interface HasPropertiesgetAllPropertyInfo in class ParticleConstraintBasepublic boolean getNagataInterpolation()
public void setNagataInterpolation(NagataInterpolator interp)
public void setMesh(PolygonalMesh mesh, java.lang.String fileName, AffineTransform3dBase X)
public PolygonalMesh getMesh()
public double updateConstraints(double t,
int flags)
Constrainer> 0 associated with all of them. If no constraints are
presently active, returns -1.updateConstraints in interface ConstrainerupdateConstraints in class ConstrainerBasepublic void updateBounds(Vector3d min, Vector3d max)
IsRenderableupdateBounds in interface IsRenderableupdateBounds in class RenderableConstrainerBasemin - minimum pointmax - maximum pointpublic boolean defaultRenderPropsAreNull()
defaultRenderPropsAreNull in class RenderableConstrainerBasepublic void render(Renderer renderer, int flags)
IsRenderableRenderer.render in interface IsRenderablerender in class RenderableConstrainerBaserenderer - 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.public void scaleMass(double s)
ScalableUnitsscaleMass in interface ScalableUnitss - scaling factorpublic void scaleDistance(double s)
ScalableUnitsscaleDistance in interface ScalableUnitss - scaling factor