JOGL v2.6.0-rc-20250706
JOGL, High-Performance Graphics Binding for Java™ (public API).
com.jogamp.graph.curve.tess.Triangulator Interface Reference

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...

Collaboration diagram for com.jogamp.graph.curve.tess.Triangulator:

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...
 

Detailed Description

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

Definition at line 50 of file Triangulator.java.

Member Function Documentation

◆ addCurve()

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.

Parameters
sinklist where the generated triangles will be added
outlinea bounding Outline
sharpnessTODO

◆ generate()

void com.jogamp.graph.curve.tess.Triangulator.generate ( List< Triangle sink)

Generate the triangulation of the provided List of Outlines.

Parameters
sinklist where the generated triangles will be added

◆ getAddedVerticeCount()

int com.jogamp.graph.curve.tess.Triangulator.getAddedVerticeCount ( )

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

◆ reset()

void com.jogamp.graph.curve.tess.Triangulator.reset ( )

Reset the triangulation to initial state Clearing cached data.

◆ setComplexShape()

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.


The documentation for this interface was generated from the following file: