Top Description Methods
com.jogamp.graph.curve.tess

public Interface Triangulator

Known Direct Implementers
jogamp.graph.curve.tess.CDTriangulator2D
Imports
java.util.List, com.jogamp.graph.geom.Outline, .Triangle

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

Modifier and TypeMethod and Description
public void
addCurve(List<Triangle>
list where the generated triangles will be added
sink
,
Outline
a bounding Outline
outline
,
float
TODO
sharpness
)

Add a curve to the list of Outlines describing the shape

public void
generate(List<Triangle>
list where the generated triangles will be added
sink
)

Generate the triangulation of the provided List of Outlines

public int
getAddedVerticeCount()

Return the number of newly added vertices during addCurve(List, Outline, float).

public void
reset()

Reset the triangulation to initial state Clearing cached data

Method Detail

addCurveback to summary
public void addCurve(List<Triangle> sink, Outline outline, float sharpness)

Add a curve to the list of Outlines describing the shape

Parameters
sink:List<Triangle>

list where the generated triangles will be added

outline:Outline

a bounding Outline

sharpness:float

TODO

generateback to summary
public void generate(List<Triangle> sink)

Generate the triangulation of the provided List of Outlines

Parameters
sink:List<Triangle>

list where the generated triangles will be added

getAddedVerticeCountback to summary
public int getAddedVerticeCount()

Return the number of newly added vertices during addCurve(List, Outline, float).

resetback to summary
public void reset()

Reset the triangulation to initial state Clearing cached data