rlaramee
Class SharedEdgeVertex
java.lang.Object
|
+--rlaramee.SharedVertex
|
+--rlaramee.SharedEdgeVertex
- public class SharedEdgeVertex
- extends SharedVertex
Description: The purpose of the SharedEdgeVertex object is to avoid
paging. When a finer resolution octree node discovers
that it has a vertex that is either on the face or the edge of a coarser
resolution (adjacent) neighboring node, the finer resolution node
instantiates a SharedVertex object and adds it to the coarser resolution
neighbor's sharedVertexList. Then when Marching Cubes is done, a
second pass is made through all of the coarser resolution nodes with
a non-empty sharedVertexList, and then their triangles are updated.
The SharedVertex object is used to remember state information such as:
- The TriangleVertex that is shared
- the edge of the coarser cube the SharedVertex may be on
- the octant that the finer resolution node responsible for
generating the sharedVertex is in
start date Fri 7 July 00
- Version:
- 1.0
- Author:
- Robert S Laramee
- See Also:
Field Summary |
private byte |
coarseEdge
range is from 0 - 11 |
Methods inherited from class rlaramee.SharedVertex |
getCoarseFace, getFineOctant, getSourceResolution, getTriangleVertex, isEqual, onSameFace, setCoarseFace, setFineOctant, setSourceResolution, setTriangleVertex, toShortString |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
coarseEdge
private byte coarseEdge
- range is from 0 - 11
SharedEdgeVertex
public SharedEdgeVertex(TriangleVertex triangleVertex)
- constructor
getCoarseEdge
public byte getCoarseEdge()
- Returns:
- the coarse edge on which this SharedVertex lies
setCoarseEdge
public boolean setCoarseEdge(byte edge)
- Parameters:
the
- coarse edge on which this SharedVertex lies- Returns:
- TRUE if the set() was successful
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
- Returns:
- a SharedVertex object's string representation