1 2 3 4 5 6 7 8 9 10 11 12
package ru.olamedia.geom; public class Quad { private float[] vertices; private int vertexCount; public void addVertex(float x, float y, float z) { vertices[vertexCount] = x; vertices[vertexCount + 1] = y; vertices[vertexCount + 2] = z; } }