public void addVertex(double x, double y, double z, int index) { if (!this.enabled) { return; } this.vertexCoord[0] = x; this.vertexCoord[1] = y; this.vertexCoord[2] = z; GLU.gluTessVertex(this.tess, this.vertexCoord, 0, index); // Associate the vertex with its index in the vertex array. }
public void vertex(Object vertexData) { GLU.gluTessVertex(this.tess, (double[])vertexData, 0, vertexData); }