IsoSurface Rendering of an AR Representation

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

Field Summary
private  TriangleEdge nextEdge
          a pointer to the next edge forms a chain
private  SharedVertex sharedVertex1
          a triangle edge consists of 2 shared triangle vertices
private  SharedVertex sharedVertex2
           
 
Constructor Summary
TriangleEdge(SharedVertex sharedVertex1, SharedVertex sharedVertex2)
          constructor
 
Method Summary
private  TriangleEdge getNextEdge()
           
 SharedVertex getSharedVertex(boolean firstVertex)
          Called from OctreeARnode.getChainStarter() .
 byte onFace()
          Called from OctreeARnode.getChainStarter() and ChainGang.faceWithMaxChains()
private  void setNextEdge(TriangleEdge triangleEdge)
           
private  void setSharedVertex(SharedVertex sharedVertex)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

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
Constructor Detail

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 vertex
sharedVertex2 - the 2nd shared triangle vertex -either a shared edge triangle vertex or a shared facial triangle vertex
Method Detail

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

IsoSurface Rendering of an AR Representation