public class PolygonTessellator extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
PolygonTessellator.TessCallbackAdapter |
Modifier and Type | Field and Description |
---|---|
protected IntBuffer |
boundaryIndices |
protected boolean |
enabled |
protected IntBuffer |
interiorIndices |
protected boolean |
isBoundaryEdge |
protected GLUtessellator |
tess |
protected double[] |
vertexCoord |
Constructor and Description |
---|
PolygonTessellator() |
Modifier and Type | Method and Description |
---|---|
protected IntBuffer |
addIndex(IntBuffer buffer,
int index) |
void |
addVertex(double x,
double y,
double z,
int index) |
void |
beginContour() |
void |
beginPolygon() |
void |
endContour() |
void |
endPolygon() |
IntBuffer |
getBoundaryIndices() |
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,
Object[] vertexData,
float[] weight,
Object[] outData) |
protected void |
tessEdgeFlag(boolean boundaryEdge) |
protected void |
tessEnd() |
protected void |
tessVertex(Object vertexData) |
protected IntBuffer boundaryIndices
protected boolean enabled
protected IntBuffer interiorIndices
protected boolean isBoundaryEdge
protected GLUtessellator tess
protected double[] vertexCoord
public void addVertex(double x, double y, double z, int index)
public void beginContour()
public void beginPolygon()
public void endContour()
public void endPolygon()
public IntBuffer getBoundaryIndices()
public 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, Object[] vertexData, float[] weight, Object[] outData)
protected void tessEdgeFlag(boolean boundaryEdge)
protected void tessEnd()
protected void tessVertex(Object vertexData)