maspack.geometry
Class SubdivisionVertex3d

java.lang.Object
  extended by maspack.geometry.Feature
      extended by maspack.geometry.Vertex3d
          extended by maspack.geometry.SubdivisionVertex3d
All Implemented Interfaces:
java.lang.Cloneable, Boundable, Clonable

public class SubdivisionVertex3d
extends Vertex3d

Holds a reference to the face and barycentric coordinates used to generate this vertice.

Author:
elliote

Field Summary
 Face f
           
 double u
           
 double v
           
 
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
SubdivisionVertex3d(Face face, double iu, double iv)
           
 
Method Summary
 SubdivisionVertex3d clone()
           
 boolean computeNormal(Vector3d nrm)
          Computes a normal for this vertex by taking the average of all the associated face normals.
 
Methods inherited from class maspack.geometry.Vertex3d
addIncidentHalfEdge, computeAngleWeightedNormal, computeCentroid, computeCovariance, 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
 

Field Detail

f

public Face f

u

public double u

v

public double v
Constructor Detail

SubdivisionVertex3d

public SubdivisionVertex3d(Face face,
                           double iu,
                           double iv)
Method Detail

computeNormal

public boolean computeNormal(Vector3d nrm)
Description copied from class: Vertex3d
Computes a normal for this vertex by taking the average of all the associated face normals.

Overrides:
computeNormal in class Vertex3d
Parameters:
nrm - returns the computed normal
Returns:
false if no faces normals are found

clone

public SubdivisionVertex3d clone()
Specified by:
clone in interface Clonable
Overrides:
clone in class Vertex3d