public class PolygonTessellator2
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected static class |
PolygonTessellator2.TessCallbackAdapter |
Modifier and Type | Field and Description |
---|---|
protected java.nio.IntBuffer |
boundaryIndices |
protected double[] |
clip |
protected double[] |
coords |
protected java.nio.IntBuffer |
interiorIndices |
protected boolean |
isBoundaryEdge |
protected double[] |
offset |
protected Range |
polygonVertexRange |
protected int |
prevClipCode |
protected GLUtessellator |
tess |
protected float[] |
vertex |
protected int |
vertexStride |
protected java.nio.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() |
java.nio.IntBuffer |
getBoundaryIndices(java.nio.IntBuffer buffer) |
int |
getInteriorIndexCount() |
java.nio.IntBuffer |
getInteriorIndices(java.nio.IntBuffer buffer) |
Range |
getPolygonVertexRange() |
int |
getVertexCount() |
java.nio.FloatBuffer |
getVertices(java.nio.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,
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 double[] clip
protected double[] coords
protected java.nio.IntBuffer interiorIndices
protected boolean isBoundaryEdge
protected double[] offset
protected Range polygonVertexRange
protected int prevClipCode
protected GLUtessellator tess
protected float[] vertex
protected int vertexStride
protected java.nio.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 java.nio.IntBuffer getBoundaryIndices(java.nio.IntBuffer buffer)
public int getInteriorIndexCount()
public java.nio.IntBuffer getInteriorIndices(java.nio.IntBuffer buffer)
public Range getPolygonVertexRange()
public int getVertexCount()
public java.nio.FloatBuffer getVertices(java.nio.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, 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)