Tessellator: improve docs (#701)

This commit is contained in:
Gustl22 2019-03-19 14:09:35 +01:00 committed by Emux
parent 905f27b2c2
commit 4e37ae26c9
No known key found for this signature in database
GPG Key ID: 64ED9980896038C3

View File

@ -32,14 +32,14 @@ public class Tessellator {
* Special version for ExtrusionLayer to match indices with vertex positions.
* Tessellates polygon in tris elements.
*
* @param points the {@link org.oscim.core.GeometryBuffer#points}
* @param ppos the {@link org.oscim.core.GeometryBuffer#pointNextPos} (not needed)
* @param numPoints equals ppos?
* @param index the {@link org.oscim.core.GeometryBuffer#index}
* @param ipos the {@link org.oscim.core.GeometryBuffer#indexCurrentPos}
* @param points the {@link GeometryBuffer#points}
* @param ppos the start point in {@link GeometryBuffer#points} (not needed)
* @param numPoints the points array size {@link GeometryBuffer#pointNextPos}
* @param index the {@link GeometryBuffer#index}
* @param ipos the {@link GeometryBuffer#indexCurrentPos}
* @param numRings the number of ring polygons
* @param vertexOffset shift outTris index with offset
* @param outTris the tessellated polygon as triangular {@link org.oscim.renderer.bucket.VertexData}
* @param outTris the tessellated polygon as triangular {@link VertexData}
* @return number of indices of outTris
*/
public static int tessellate(float[] points, int ppos, int numPoints, int[] index,