|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.newdawn.slick.geom.NeatTriangulator
public class NeatTriangulator
A second triangulator that seems slightly more robust
| Constructor Summary | |
|---|---|
NeatTriangulator()
Create a new triangulator |
|
| Method Summary | |
|---|---|
void |
addPolyPoint(float x,
float y)
Add a point to the polygon |
void |
basicTriangulation()
Perform simple triangulation |
void |
clear()
Clear the triangulator status |
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()
Upate the triangles |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NeatTriangulator()
| Method Detail |
|---|
public void clear()
public void basicTriangulation()
throws org.newdawn.slick.geom.NeatTriangulator.InternalException
InternalException - Indicates a polygon that can't be triangulated
org.newdawn.slick.geom.NeatTriangulator.InternalExceptionpublic boolean triangulate()
triangulate in interface Triangulator
public void addPolyPoint(float x,
float y)
addPolyPoint in interface Triangulatorx - The x coordinate of the pointy - The y coordiante of the pointpublic int getTriangleCount()
Triangulator
getTriangleCount in interface TriangulatorTriangulator.getTriangleCount()
public float[] getTrianglePoint(int tri,
int i)
Triangulator
getTrianglePoint in interface Triangulatortri - The index of the triangle to interegatei - The index of the point within the triangle to retrieve
(0 - 2)
Triangulator.getTrianglePoint(int, int)public void startHole()
Triangulator
startHole in interface TriangulatorTriangulator.startHole()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||