Top Description Fields Constructors Methods
jogamp.graph.curve.tess

public Class CDTriangulator2DExpAddOn

extends Object
Class Inheritance
Imports
com.jogamp.graph.geom.Triangle, .Vertex, com.jogamp.opengl.math.FloatUtil, .VectorUtil

Experimental Add-On .. Disabled by default

Field Summary

Modifier and TypeField and Description
private final float[]
private final float[]

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected final void
markLineInTriangle(final Triangle tri1, final float[] tempV2)

protected final float[]
processLineAA(final int i, final Triangle tri1, final Triangle tri2, final float[]
temp float[2] storage
tempV2
)

If this and the other triangle compose a rectangle return the given tempV2 array w/ shortest side first.

private final float[]
processLineAAImpl(final Triangle tri1, final Triangle tri2, final float[] tempV2)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

tempV3aback to summary
private final float[] tempV3a
tempV3bback to summary
private final float[] tempV3b

Constructor Detail

CDTriangulator2DExpAddOnback to summary
public CDTriangulator2DExpAddOn()

Method Detail

markLineInTriangleback to summary
protected final void markLineInTriangle(final Triangle tri1, final float[] tempV2)
processLineAAback to summary
protected final float[] processLineAA(final int i, final Triangle tri1, final Triangle tri2, final float[] tempV2)

If this and the other triangle compose a rectangle return the given tempV2 array w/ shortest side first. Otherwise return null;

Experimental CODE, enabled only if TEST_LINE_AA is set .. WIP

One test uses method: ROESSLER-2012-OGLES

However, we would need to tesselate all lines appropriately, i.e. create 2 triangles sharing the middle actual line using thickness+radius. This test simply used our default font w/ a line thickness of 2 pixels, which produced mentioned rectangles. This is of course not the case for arbitrary Outline shapes.

Parameters
tempV2:float[]

temp float[2] storage

processLineAAImplback to summary
private final float[] processLineAAImpl(final Triangle tri1, final Triangle tri2, final float[] tempV2)