artisynth.core.mfreemodels
Class MFreeVertex3d

java.lang.Object
  extended by maspack.geometry.Feature
      extended by maspack.geometry.Vertex3d
          extended by artisynth.core.mfreemodels.MFreeVertex3d
All Implemented Interfaces:
MFreePoint3d, java.lang.Cloneable, Boundable, Clonable

public class MFreeVertex3d
extends Vertex3d
implements MFreePoint3d


Field Summary
static double DEFAULT_COORDINATE_TOLERANCE
           
 
Fields inherited from class maspack.geometry.Vertex3d
myRenderPnt, pnt, uniqueIndex
 
Fields inherited from class maspack.geometry.Feature
CELL, EDGE, FACE, FACET, HALF_EDGE, TYPE_MASK, UNKNOWN, VERTEX_2D, VERTEX_3D, VISITED
 
Constructor Summary
MFreeVertex3d(java.util.ArrayList<MFreeNode3d> dependentNodes, VectorNd coords)
           
 
Method Summary
 MFreeVertex3d clone()
           
 java.util.ArrayList<MFreeNode3d> getDependentNodes()
           
 VectorNd getNodeCoordinates()
           
 Point3d getRestPosition()
           
 boolean reduceDependencies(double tol)
          Removes all dependencies with have very low weights ( |w| <= tol )
 void setDependentNodes(java.util.List<MFreeNode3d> nodes, VectorNd coords)
           
 void setNodeCoordinates(VectorNd coords)
           
 void updatePosAndVelState()
           
 void updatePosState()
           
 void updateRestPosition()
           
 void updateVelState()
           
 
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 maspack.geometry.Feature
checkFlag, clearFlag, clearVisited, getType, getTypeName, isVisited, setFlag, setVisited, voronoiCheck
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface artisynth.core.mfreemodels.MFreePoint3d
getPosition
 

Field Detail

DEFAULT_COORDINATE_TOLERANCE

public static double DEFAULT_COORDINATE_TOLERANCE
Constructor Detail

MFreeVertex3d

public MFreeVertex3d(java.util.ArrayList<MFreeNode3d> dependentNodes,
                     VectorNd coords)
Method Detail

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