|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.newdawn.slick.geom.OverTriangulator
public class OverTriangulator
A triangulator implementation that splits the triangules of another, subdividing to give a higher tesselation - and hence smoother transitions.
Constructor Summary | |
---|---|
OverTriangulator(Triangulator tris)
Create a new triangulator |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OverTriangulator(Triangulator tris)
tris
- The original set of triangles to be sub-dividiedMethod Detail |
---|
public void addPolyPoint(float x, float y)
Triangulator
addPolyPoint
in interface Triangulator
x
- The x coordinate of the pointy
- The y coordiante of the pointTriangulator.addPolyPoint(float, float)
public int getTriangleCount()
Triangulator
getTriangleCount
in interface Triangulator
Triangulator.getTriangleCount()
public float[] getTrianglePoint(int tri, int i)
Triangulator
getTrianglePoint
in interface Triangulator
tri
- 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 Triangulator
Triangulator.startHole()
public boolean triangulate()
Triangulator
triangulate
in interface Triangulator
Triangulator.triangulate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |