public class PolygonTessellator
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected static class |
PolygonTessellator.TessCallbackAdapter |
Modifier and Type | Field and Description |
---|---|
protected java.nio.IntBuffer |
boundaryIndices |
protected boolean |
enabled |
protected java.nio.IntBuffer |
interiorIndices |
protected boolean |
isBoundaryEdge |
protected com.jogamp.opengl.glu.GLUtessellator |
tess |
protected double[] |
vertexCoord |
Constructor and Description |
---|
PolygonTessellator() |
Modifier and Type | Method and Description |
---|---|
protected java.nio.IntBuffer |
addIndex(java.nio.IntBuffer buffer,
int index) |
void |
addVertex(double x,
double y,
double z,
int index) |
void |
beginContour() |
void |
beginPolygon() |
void |
endContour() |
void |
endPolygon() |
java.nio.IntBuffer |
getBoundaryIndices() |
java.nio.IntBuffer |
getInteriorIndices() |
boolean |
isEnabled() |
void |
reset() |
void |
setEnabled(boolean enabled) |
void |
setPolygonNormal(double x,
double y,
double z) |
protected void |
tessBegin(int type) |
protected void |
tessCombine(double[] coords,
java.lang.Object[] vertexData,
float[] weight,
java.lang.Object[] outData) |
protected void |
tessEdgeFlag(boolean boundaryEdge) |
protected void |
tessEnd() |
protected void |
tessVertex(java.lang.Object vertexData) |
protected java.nio.IntBuffer boundaryIndices
protected boolean enabled
protected java.nio.IntBuffer interiorIndices
protected boolean isBoundaryEdge
protected com.jogamp.opengl.glu.GLUtessellator tess
protected double[] vertexCoord
protected java.nio.IntBuffer addIndex(java.nio.IntBuffer buffer, int index)
public void addVertex(double x, double y, double z, int index)
public void beginContour()
public void beginPolygon()
public void endContour()
public void endPolygon()
public java.nio.IntBuffer getBoundaryIndices()
public java.nio.IntBuffer getInteriorIndices()
public boolean isEnabled()
public void reset()
public void setEnabled(boolean enabled)
public void setPolygonNormal(double x, double y, double z)
protected void tessBegin(int type)
protected void tessCombine(double[] coords, java.lang.Object[] vertexData, float[] weight, java.lang.Object[] outData)
protected void tessEdgeFlag(boolean boundaryEdge)
protected void tessEnd()
protected void tessVertex(java.lang.Object vertexData)