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:
Outline
,Triangulation
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addCurve(List<Triangle> sink, Outline outline, float sharpness)
Add a curve to the list of Outlines describing the shapevoid
generate(List<Triangle> sink)
Generate the triangulation of the provided List ofOutline
sint
getAddedVerticeCount()
Return the number of newly added vertices duringaddCurve(List, Outline, float)
.void
reset()
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 boundingOutline
sharpness
- TODO
-
generate
void generate(List<Triangle> sink)
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)
.
-
-