public Buffer getVertices() { float v[] = new float[points.size()]; for (int i = 0; i < points.size(); i++) { v[i] = (points.elementAt(i)).floatValue(); } return FloatBuffer.wrap(v); }
public Buffer getUV() { float v[] = new float[uv.size()]; for (int i = 0; i < uv.size(); i++) { v[i] = (uv.elementAt(i)).floatValue(); } return FloatBuffer.wrap(v); }
public Buffer getNormals() { float v[] = new float[normals.size()]; for (int i = 0; i < normals.size(); i++) { v[i] = (normals.elementAt(i)).floatValue(); } return FloatBuffer.wrap(v); }