artisynth.core.mfreemodels
Class MFreeVertex3d
java.lang.Object
maspack.geometry.Feature
maspack.geometry.Vertex3d
artisynth.core.mfreemodels.MFreeVertex3d
- All Implemented Interfaces:
- MFreePoint3d, java.lang.Cloneable, Boundable, Clonable
public class MFreeVertex3d
- extends Vertex3d
- implements MFreePoint3d
Methods inherited from class maspack.geometry.Vertex3d |
addIncidentHalfEdge, computeAngleWeightedNormal, computeCentroid, computeCovariance, computeNormal, computeRenderNormal, copy, firstIncidentHalfEdge, getColor, getColorArray, getIncidentHalfEdges, getIndex, getMesh, getPoint, getPosition, getWorldPoint, getWorldPoint, interpolate, numIncidentHalfEdges, numPoints, removeIncidentHalfEdge, saveRenderInfo, setColor, setColor, setColor, setColor, setColor, setColor, setColorHSV, setColorHSV, setIndex, setMesh, setPosition, updateBounds |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_COORDINATE_TOLERANCE
public static double DEFAULT_COORDINATE_TOLERANCE
MFreeVertex3d
public MFreeVertex3d(java.util.ArrayList<MFreeNode3d> dependentNodes,
VectorNd coords)
getDependentNodes
public java.util.ArrayList<MFreeNode3d> getDependentNodes()
- Specified by:
getDependentNodes
in interface MFreePoint3d
setDependentNodes
public void setDependentNodes(java.util.List<MFreeNode3d> nodes,
VectorNd coords)
- Specified by:
setDependentNodes
in interface MFreePoint3d
updateRestPosition
public void updateRestPosition()
getRestPosition
public Point3d getRestPosition()
- Specified by:
getRestPosition
in interface MFreePoint3d
getNodeCoordinates
public VectorNd getNodeCoordinates()
- Specified by:
getNodeCoordinates
in interface MFreePoint3d
setNodeCoordinates
public void setNodeCoordinates(VectorNd coords)
- Specified by:
setNodeCoordinates
in interface MFreePoint3d
updatePosState
public void updatePosState()
- Specified by:
updatePosState
in interface MFreePoint3d
updateVelState
public void updateVelState()
- Specified by:
updateVelState
in interface MFreePoint3d
updatePosAndVelState
public void updatePosAndVelState()
- Specified by:
updatePosAndVelState
in interface MFreePoint3d
clone
public MFreeVertex3d clone()
- Specified by:
clone
in interface Clonable
- Overrides:
clone
in class Vertex3d
reduceDependencies
public boolean reduceDependencies(double tol)
- Description copied from interface:
MFreePoint3d
- Removes all dependencies with have very low weights
( |w| <= tol )
- Specified by:
reduceDependencies
in interface MFreePoint3d
- Returns:
- true if modified