public class PolygonTessellator2 extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
PolygonTessellator2.TessCallbackAdapter |
Modifier and Type | Field and Description |
---|---|
protected IntBuffer |
boundaryIndices |
protected double[] |
clip |
protected double[] |
coords |
protected IntBuffer |
interiorIndices |
protected boolean |
isBoundaryEdge |
protected double[] |
offset |
protected Range |
polygonVertexRange |
protected int |
prevClipCode |
protected GLUtessellator |
tess |
protected float[] |
vertex |
protected int |
vertexStride |
protected FloatBuffer |
vertices |
Constructor and Description |
---|
PolygonTessellator2() |
Modifier and Type | Method and Description |
---|---|
void |
addVertex(double x,
double y,
double z) |
void |
beginContour() |
void |
beginPolygon() |
protected int |
clipCode(double x,
double y,
double z)
Computes a 4-bit code indicating the vertex's location in the 9 cell grid defined by the clip bounds and the
eight adjacent spaces defined by extending the min/max boundaries to infinity.
|
void |
endContour() |
void |
endPolygon() |
int |
getBoundaryIndexCount() |
IntBuffer |
getBoundaryIndices(IntBuffer buffer) |
int |
getInteriorIndexCount() |
IntBuffer |
getInteriorIndices(IntBuffer buffer) |
Range |
getPolygonVertexRange() |
int |
getVertexCount() |
FloatBuffer |
getVertices(FloatBuffer buffer) |
protected void |
putBoundaryIndex(int i) |
protected void |
putInteriorIndex(int i) |
protected int |
putVertex(double[] coords,
int pos) |
void |
reset() |
void |
resetIndices() |
void |
setPolygonClipCoords(double xMin,
double xMax,
double yMin,
double yMax) |
void |
setPolygonNormal(double x,
double y,
double z) |
void |
setVertexOffset(double x,
double y,
double z) |
void |
setVertexStride(int stride) |
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 double[] clip
protected double[] coords
protected IntBuffer interiorIndices
protected boolean isBoundaryEdge
protected double[] offset
protected Range polygonVertexRange
protected int prevClipCode
protected GLUtessellator tess
protected float[] vertex
protected int vertexStride
protected FloatBuffer vertices
public void addVertex(double x, double y, double z)
public void beginContour()
public void beginPolygon()
protected int clipCode(double x, double y, double z)
public void endContour()
public void endPolygon()
public int getBoundaryIndexCount()
public int getInteriorIndexCount()
public Range getPolygonVertexRange()
public int getVertexCount()
public FloatBuffer getVertices(FloatBuffer buffer)
protected void putBoundaryIndex(int i)
protected void putInteriorIndex(int i)
protected int putVertex(double[] coords, int pos)
public void reset()
public void resetIndices()
public void setPolygonClipCoords(double xMin, double xMax, double yMin, double yMax)
public void setPolygonNormal(double x, double y, double z)
public void setVertexOffset(double x, double y, double z)
public void setVertexStride(int stride)
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)