Package com.jogamp.graph.curve.tess
Interface Triangulator
-
public interface TriangulatorInterface to the triangulation algorithms provided A triangulation of 2D outlines where you can provides an easy one or more outlines to be triangulated example usage: addCurve(o1); addCurve(o2); addCurve(o3); generate(); reset();- See Also:
Outline,Triangulation
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddCurve(List<Triangle> sink, Outline outline, float sharpness)Add a curve to the list of Outlines describing the shapevoidgenerate(List<Triangle> sink)Generate the triangulation of the provided List ofOutlinesintgetAddedVerticeCount()Return the number of newly added vertices duringaddCurve(List, Outline, float).voidreset()Reset the triangulation to initial state Clearing cached data
-
-
-
Method Detail
-
addCurve
void addCurve(List<Triangle> sink, Outline outline, float sharpness)
Add a curve to the list of Outlines describing the shape- Parameters:
sink- list where the generated triangles will be addedoutline- a boundingOutlinesharpness- TODO
-
generate
void generate(List<Triangle> sink)
Generate the triangulation of the provided List ofOutlines- Parameters:
sink- list where the generated triangles will be added
-
reset
void reset()
Reset the triangulation to initial state Clearing cached data
-
getAddedVerticeCount
int getAddedVerticeCount()
Return the number of newly added vertices duringaddCurve(List, Outline, float).
-
-