rlaramee
Class TriangleEdge
java.lang.Object
|
+--rlaramee.TriangleEdge
- public class TriangleEdge
- extends java.lang.Object
Description: A triangle edge object lies on the side of an
AR octree node. It is placed there by a finer
resolution octree node when that finer octree node identifies one
of its (the fine node's) triangle edges on the side of its coarser
neighbor node.
start date Mon 30 Apr 2001
- Version:
- 1.0
- Author:
- Robert S Laramee
- See Also:
OctreeARnode.java
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
sharedVertex1
private SharedVertex sharedVertex1
- a triangle edge consists of 2 shared triangle vertices
sharedVertex2
private SharedVertex sharedVertex2
nextEdge
private TriangleEdge nextEdge
- a pointer to the next edge forms a chain
TriangleEdge
public TriangleEdge(SharedVertex sharedVertex1,
SharedVertex sharedVertex2)
- constructor
- Parameters:
sharedVertex1
- the 1st shared triangle vertex -either a shared
edge triangle vertex or a shared facial triangle
vertexsharedVertex2
- the 2nd shared triangle vertex -either a shared
edge triangle vertex or a shared facial triangle
vertex
getSharedVertex
public SharedVertex getSharedVertex(boolean firstVertex)
- Called from OctreeARnode.getChainStarter() .
- Parameters:
firstEdge
- TRUE if we are returning the 1st vertex
setSharedVertex
private void setSharedVertex(SharedVertex sharedVertex)
- Parameters:
sharedVertex
- one of 2 shared triangle vertices making up this
triangle edge
getNextEdge
private TriangleEdge getNextEdge()
- Returns:
- this edge's next triangle edge
setNextEdge
private void setNextEdge(TriangleEdge triangleEdge)
- Parameters:
this
- edge's next triangle edge
onFace
public byte onFace()
- Called from OctreeARnode.getChainStarter() and
ChainGang.faceWithMaxChains()
- Returns:
- the coarse cube face that this trianlge edge is on
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
- Returns:
- the string representation of this trianlge edge