IsoSurface Rendering of an AR Representation

rlaramee
Class Chain

java.lang.Object
  |
  +--rlaramee.Chain

public class Chain
extends java.lang.Object

Description: A ChainGang is composed of Chain s and a Chain lies on the side of an AR octree node. A Chain is composed of connected TrianlgeEdge s.

start date Wed 16 May 2001

Version:
1.0
Author:
Robert S Laramee
See Also:
ChainGang.java

Field Summary
(package private)  java.util.ArrayList chain
           
 
Constructor Summary
Chain()
          constructor
 
Method Summary
 void addLink(TriangleEdge link)
           
private  java.util.ArrayList getChain()
           
 byte getLength()
          This is called from ChainGang.toString()
 TriangleEdge getLink(int i)
          This is called from ChainGang.toString() and OctreeARnode.assembleTriangleFan()
 byte getStartEdge()
          This is called from OctreeARnode.generateTriangleFan()
private  void setChain()
          Initializes the chain object
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

chain

java.util.ArrayList chain
Constructor Detail

Chain

public Chain()
constructor
Method Detail

getChain

private java.util.ArrayList getChain()

setChain

private void setChain()
Initializes the chain object

addLink

public void addLink(TriangleEdge link)
Parameters:
link - a trianle edge to add to this chain

getLength

public byte getLength()
This is called from ChainGang.toString()

Returns:
the length of this chain (the number of links/triangle edges)

getLink

public TriangleEdge getLink(int i)
This is called from ChainGang.toString() and OctreeARnode.assembleTriangleFan()

Returns:
the link of this chain at the given index

getStartEdge

public byte getStartEdge()
This is called from OctreeARnode.generateTriangleFan()

Returns:
the coarse cube edge on which this chain starts

IsoSurface Rendering of an AR Representation