com.partnersoft.geometry
Class TriangleArray

java.lang.Object
  extended by com.partnersoft.geometry.TriangleArray

public class TriangleArray
extends java.lang.Object

A list of triangles. Has some handy construction methods to help with clipping, tesselation, etc.

Author:
Paul Reavis Copyright 2004 Partner Software, Inc.

Field Summary
 DoubleBuffer vertices
           
 
Constructor Summary
TriangleArray()
          Creates an empty triangle array with initial capacity 8.
TriangleArray(int cap)
          Creates a triangle array of the given initial capacity.
 
Method Summary
 void add(double x1, double y1, double x2, double y2, double x3, double y3)
           
 void add(Triangle addMe)
           
 void addAll(TriangleArray nother)
           
 int getTriangleCount()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

vertices

public DoubleBuffer vertices
Constructor Detail

TriangleArray

public TriangleArray()
Creates an empty triangle array with initial capacity 8.


TriangleArray

public TriangleArray(int cap)
Creates a triangle array of the given initial capacity.

Method Detail

add

public void add(Triangle addMe)

add

public void add(double x1,
                double y1,
                double x2,
                double y2,
                double x3,
                double y3)

addAll

public final void addAll(TriangleArray nother)

getTriangleCount

public int getTriangleCount()