|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Triangulator
A collection of triangles
Method Summary | |
---|---|
void |
addPolyPoint(float x,
float y)
Add a point that forms part of the outer polygon |
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 |
void |
startHole()
Start a hole in the polygon |
boolean |
triangulate()
Run the triangulation |
Method Detail |
---|
int getTriangleCount()
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)
void addPolyPoint(float x, float y)
x
- The x coordinate of the pointy
- The y coordiante of the pointvoid startHole()
boolean triangulate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |