org.starhope.appius.physica
Class Triangulation

java.lang.Object
  extended by org.starhope.appius.physica.Triangulation

 class Triangulation
extends Object

Triangulation class. A triangulation is represented as a set of points and the edges which form the triangulation.


Field Summary
(package private)  Edge[] edge
          WRITEME: Document this brpocock@star-hope.org
(package private)  int maxEdges
          WRITEME: Document this brpocock@star-hope.org
(package private)  int nEdges
          WRITEME: Document this brpocock@star-hope.org
(package private)  int nPoints
          WRITEME: Document this brpocock@star-hope.org
(package private)  Point2D.Double[] point
          WRITEME: Document this brpocock@star-hope.org
(package private) static int Undefined
          WRITEME: Document this brpocock@star-hope.org
(package private) static int Universe
          WRITEME: Document this brpocock@star-hope.org
 
Constructor Summary
Triangulation(int numPoints)
          WRITEME: Document this constructor brpocock@star-hope.org
 
Method Summary
 int addEdge(int s, int t)
          WRITEME: Document this method brpocock@star-hope.org
 int addEdge(int s, int t, int l, int r)
          Adds an edge to the triangulation.
(package private)  void addTriangle(int s, int t, int u)
          WRITEME: Document this method brpocock@star-hope.org
 void copyPoints(Triangulation t)
          Copies a set of points.
 int findEdge(int s, int t)
          WRITEME: Document this method brpocock@star-hope.org
 void print(PrintStream p)
          WRITEME: Document this method brpocock@star-hope.org
 void printEdges(PrintStream p)
          WRITEME: Document this method brpocock@star-hope.org
 void printPoints(PrintStream p)
          WRITEME: Document this method brpocock@star-hope.org
 void setNPoints(int numPoints)
          Sets the number of points in the triangulation.
 void updateLeftFace(int eI, int s, int t, int f)
          Update the left face of an edge.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Undefined

static final int Undefined
WRITEME: Document this brpocock@star-hope.org

See Also:
Constant Field Values

Universe

static final int Universe
WRITEME: Document this brpocock@star-hope.org

See Also:
Constant Field Values

edge

Edge[] edge
WRITEME: Document this brpocock@star-hope.org


maxEdges

int maxEdges
WRITEME: Document this brpocock@star-hope.org


nEdges

int nEdges
WRITEME: Document this brpocock@star-hope.org


nPoints

int nPoints
WRITEME: Document this brpocock@star-hope.org


point

Point2D.Double[] point
WRITEME: Document this brpocock@star-hope.org

Constructor Detail

Triangulation

Triangulation(int numPoints)
WRITEME: Document this constructor brpocock@star-hope.org

Parameters:
numPoints - WRITEME
Method Detail

addEdge

public int addEdge(int s,
                   int t)
WRITEME: Document this method brpocock@star-hope.org

Parameters:
s - WRITEME
t - WRITEME
Returns:
WRITEME

addEdge

public int addEdge(int s,
                   int t,
                   int l,
                   int r)
Adds an edge to the triangulation. Store edges with lowest vertex first (easier to debug and makes no other difference).

Parameters:
s - WRITEME
t - WRITEME
l - WRITEME
r - WRITEME
Returns:
WRITEME

addTriangle

void addTriangle(int s,
                 int t,
                 int u)
WRITEME: Document this method brpocock@star-hope.org

Parameters:
s - WRITEME
t - WRITEME
u - WRITEME

copyPoints

public void copyPoints(Triangulation t)
Copies a set of points.

Parameters:
t - WRITEME

findEdge

public int findEdge(int s,
                    int t)
WRITEME: Document this method brpocock@star-hope.org

Parameters:
s - WRITEME
t - WRITEME
Returns:
WRITEME

print

public void print(PrintStream p)
WRITEME: Document this method brpocock@star-hope.org

Parameters:
p - WRITEME

printEdges

public void printEdges(PrintStream p)
WRITEME: Document this method brpocock@star-hope.org

Parameters:
p - WRITEME

printPoints

public void printPoints(PrintStream p)
WRITEME: Document this method brpocock@star-hope.org

Parameters:
p - WRITEME

setNPoints

public void setNPoints(int numPoints)
Sets the number of points in the triangulation. Reuses already allocated points and edges.

Parameters:
numPoints - WRITEME

updateLeftFace

public void updateLeftFace(int eI,
                           int s,
                           int t,
                           int f)
Update the left face of an edge.

Parameters:
eI - WRITEME
s - WRITEME
t - WRITEME
f - WRITEME