Package com.jogamp.graph.curve.tess
Interface Triangulator
public interface Triangulator
Interface 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:
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a curve to the list of Outlines describing the shapevoidGenerate the triangulation of the provided List ofOutlinesintReturn the number of newly added vertices duringaddCurve(List, Outline, float).voidreset()Reset the triangulation to initial state Clearing cached data
-
Method Details
-
addCurve
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
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).
-