|
JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java (public API).
|
Interface to the triangulation algorithms provided A triangulation of 2D outlines where you can provides an easy one or more outlines to be triangulated. More...
Public Member Functions | |
| void | setComplexShape (boolean complex) |
| Mark the to be triangulated shape complex or non-complex. More... | |
| void | addCurve (List< Triangle > sink, Outline outline, float sharpness) |
| Add a curve to the list of Outlines describing the shape. More... | |
| void | generate (List< Triangle > sink) |
Generate the triangulation of the provided List of Outlines. More... | |
| void | reset () |
| Reset the triangulation to initial state Clearing cached data. More... | |
| int | getAddedVerticeCount () |
Return the number of newly added vertices during addCurve(List, Outline, float). More... | |
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();
Definition at line 50 of file Triangulator.java.
| void com.jogamp.graph.curve.tess.Triangulator.addCurve | ( | List< Triangle > | sink, |
| Outline | outline, | ||
| float | sharpness | ||
| ) |
Add a curve to the list of Outlines describing the shape.
| sink | list where the generated triangles will be added |
| outline | a bounding Outline |
| sharpness | TODO |
| void com.jogamp.graph.curve.tess.Triangulator.generate | ( | List< Triangle > | sink | ) |
Generate the triangulation of the provided List of Outlines.
| sink | list where the generated triangles will be added |
| int com.jogamp.graph.curve.tess.Triangulator.getAddedVerticeCount | ( | ) |
Return the number of newly added vertices during addCurve(List, Outline, float).
| void com.jogamp.graph.curve.tess.Triangulator.reset | ( | ) |
Reset the triangulation to initial state Clearing cached data.
| void com.jogamp.graph.curve.tess.Triangulator.setComplexShape | ( | boolean | complex | ) |
Mark the to be triangulated shape complex or non-complex.
Complex shapes may cause further processing costs, e.g. intersection tests to overcome self-intersecting shapes.
Default is assuming a simple non-complex shape.