public class Tessellator
extends java.lang.Object
| Constructor and Description |
|---|
Tessellator() |
| Modifier and Type | Method and Description |
|---|---|
static int |
tessellate(float[] points,
int ppos,
int numPoints,
int[] index,
int ipos,
int numRings,
int vertexOffset,
VertexData outTris)
Special version for ExtrusionLayer to match indices with vertex positions.
|
static int |
tessellate(GeometryBuffer geom,
GeometryBuffer outMesh)
Tessellates a
GeometryBuffer to a triangular/mesh GeometryBuffer. |
public static int tessellate(float[] points,
int ppos,
int numPoints,
int[] index,
int ipos,
int numRings,
int vertexOffset,
VertexData outTris)
points - the GeometryBuffer.pointsppos - the start point in GeometryBuffer.points (not needed)numPoints - the points array size GeometryBuffer.pointNextPosindex - the GeometryBuffer.indexipos - the GeometryBuffer.indexCurrentPosnumRings - the number of ring polygonsvertexOffset - shift outTris index with offsetoutTris - the tessellated polygon as triangular VertexDatapublic static int tessellate(GeometryBuffer geom, GeometryBuffer outMesh)
GeometryBuffer to a triangular/mesh GeometryBuffer.
The points array remains the same.geom - the input GeometryBuffer as POLY or LINEoutMesh - the out GeometryBuffer as MESH, but has 2D point coordinates.