public class Triangulator
extends java.lang.Object
| Constructor and Description |
|---|
Triangulator()
Create a new triangulator
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPolyPoint(float x,
float y)
Add a point describing the polygon to be triangulated
|
int |
getTriangleCount()
Get a count of the number of triangles produced
|
float[] |
getTrianglePoint(int tri,
int i)
Get a point on a specified generated triangle
|
boolean |
triangulate()
Cause the triangulator to split the polygon
|
public void addPolyPoint(float x,
float y)
x - The x coordinate of the pointy - the y coordinate of the pointpublic boolean triangulate()
public int getTriangleCount()
public float[] getTrianglePoint(int tri,
int i)
tri - The index of the triangle to interegatei - The index of the point within the triangle to retrieve
(0 - 2)