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 TypeMethodDescriptionvoid
Add a curve to the list of Outlines describing the shapevoid
Generate the triangulation of the provided List ofOutline
sint
Return the number of newly added vertices duringaddCurve(List, Outline, float)
.void
reset()
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 boundingOutline
sharpness
- TODO
-
generate
Generate the triangulation of the provided List ofOutline
s- 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)
.
-