@Test public void testGetNumTriangles() { assertEquals(0, geometry.getNumTriangles()); }
public int getNumTriangles() { final Buffer vertBuffer = mBuffers.get(VERTEX_BUFFER_KEY).buffer; return vertBuffer != null ? vertBuffer.limit() / 9 : 0; }
Geometry3D { public int getNumTriangles() { final Buffer vertBuffer = mBuffers.get(VERTEX_BUFFER_KEY).buffer; return vertBuffer != null ? vertBuffer.limit() / 9 : 0; } }
Geometry3D { public int getNumTriangles() { final Buffer vertBuffer = mBuffers.get(VERTEX_BUFFER_KEY).buffer; return vertBuffer != null ? vertBuffer.limit() / 9 : 0; } Geometry3D(); }
Geometry3D { public int getNumTriangles() { final Buffer vertBuffer = mBuffers.get(VERTEX_BUFFER_KEY).buffer; return vertBuffer != null ? vertBuffer.limit() / 9 : 0; } Geometry3D(); static float[] concatAllFloat(float[]... arrays); static int[] concatAllInt(int[]... arrays); static float[] getFloatArrayFromBuffer(FloatBuffer buffer); static int[] getIntArrayFromBuffer(Buffer buffer); void copyFromGeometry3D(Geometry3D geom); void addFromGeometry3D(Vector3 offset, Geometry3D geometry, boolean createVBOs); void setData(BufferInfo vertexBufferInfo, BufferInfo normalBufferInfo,
                        float[] textureCoords, float[] colors, int[] indices, boolean createVBOs); void setData(float[] vertices, float[] normals,
                        float[] textureCoords, float[] colors, int[] indices, boolean createVBOs); void setData(float[] vertices, int verticesUsage, float[] normals, int normalsUsage,
                        float[] textureCoords, int textureCoordsUsage, float[] colors, int colorsUsage,
                        int[] indices, int indicesUsage, boolean createVBOs); void createBuffers(); void reload(); boolean isValid(); void createVertexAndNormalBuffersOnly(); void createBuffer(BufferInfo bufferInfo, BufferType type, int target); void createBuffer(BufferInfo bufferInfo, BufferType type, int target, int usage); void createBuffer(BufferInfo bufferInfo); int addBuffer(BufferInfo bufferInfo, BufferType type, int target, int usage); int addBuffer(BufferInfo bufferInfo, BufferType type, int target); void validateBuffers(); void changeBufferUsage(BufferInfo bufferInfo, final int usage); void changeBufferData(BufferInfo bufferInfo, Buffer newData, int index); void changeBufferData(BufferInfo bufferInfo, Buffer newData, int index, int size); void changeBufferData(BufferInfo bufferInfo, Buffer newData, int index, boolean resizeBuffer); void changeBufferData(BufferInfo bufferInfo, Buffer newData, int index, int size, boolean resizeBuffer); void setVertices(float[] vertices); void setVertices(float[] vertices, boolean override); void setVertices(FloatBuffer vertices); FloatBuffer getVertices(); void setNormals(float[] normals); void setNormals(float[] normals, boolean override); void setNormals(FloatBuffer normals); FloatBuffer getNormals(); boolean hasNormals(); void setIndices(int[] indices); void setIndices(int[] indices, boolean override); IntBuffer getIndices(); void setTextureCoords(float[] textureCoords); void setTextureCoords(float[] textureCoords, boolean override); FloatBuffer getTextureCoords(); boolean hasTextureCoordinates(); void setColors(int color); void setColors(float[] colors); void setColors(float[] colors, boolean override); FloatBuffer getColors(); int getNumIndices(); int getNumVertices(); void setNumVertices(int numVertices); void setColor(float r, float g, float b, float a); void setColor(float r, float g, float b, float a, boolean createNewBuffer); String toString(); void destroy(); boolean hasBoundingBox(); BoundingBox getBoundingBox(); boolean hasBoundingSphere(); BoundingSphere getBoundingSphere(); BufferInfo getVertexBufferInfo(); void setVertexBufferInfo(BufferInfo vertexBufferInfo); BufferInfo getIndexBufferInfo(); void setIndexBufferInfo(BufferInfo indexBufferInfo); BufferInfo getTexCoordBufferInfo(); void setTexCoordBufferInfo(BufferInfo texCoordBufferInfo); BufferInfo getColorBufferInfo(); void setColorBufferInfo(BufferInfo colorBufferInfo); BufferInfo getNormalBufferInfo(); void setNormalBufferInfo(BufferInfo normalBufferInfo); int getNumTriangles(); void setBuffersCreated(boolean created); }
Geometry3D { public int getNumTriangles() { final Buffer vertBuffer = mBuffers.get(VERTEX_BUFFER_KEY).buffer; return vertBuffer != null ? vertBuffer.limit() / 9 : 0; } Geometry3D(); static float[] concatAllFloat(float[]... arrays); static int[] concatAllInt(int[]... arrays); static float[] getFloatArrayFromBuffer(FloatBuffer buffer); static int[] getIntArrayFromBuffer(Buffer buffer); void copyFromGeometry3D(Geometry3D geom); void addFromGeometry3D(Vector3 offset, Geometry3D geometry, boolean createVBOs); void setData(BufferInfo vertexBufferInfo, BufferInfo normalBufferInfo,
                        float[] textureCoords, float[] colors, int[] indices, boolean createVBOs); void setData(float[] vertices, float[] normals,
                        float[] textureCoords, float[] colors, int[] indices, boolean createVBOs); void setData(float[] vertices, int verticesUsage, float[] normals, int normalsUsage,
                        float[] textureCoords, int textureCoordsUsage, float[] colors, int colorsUsage,
                        int[] indices, int indicesUsage, boolean createVBOs); void createBuffers(); void reload(); boolean isValid(); void createVertexAndNormalBuffersOnly(); void createBuffer(BufferInfo bufferInfo, BufferType type, int target); void createBuffer(BufferInfo bufferInfo, BufferType type, int target, int usage); void createBuffer(BufferInfo bufferInfo); int addBuffer(BufferInfo bufferInfo, BufferType type, int target, int usage); int addBuffer(BufferInfo bufferInfo, BufferType type, int target); void validateBuffers(); void changeBufferUsage(BufferInfo bufferInfo, final int usage); void changeBufferData(BufferInfo bufferInfo, Buffer newData, int index); void changeBufferData(BufferInfo bufferInfo, Buffer newData, int index, int size); void changeBufferData(BufferInfo bufferInfo, Buffer newData, int index, boolean resizeBuffer); void changeBufferData(BufferInfo bufferInfo, Buffer newData, int index, int size, boolean resizeBuffer); void setVertices(float[] vertices); void setVertices(float[] vertices, boolean override); void setVertices(FloatBuffer vertices); FloatBuffer getVertices(); void setNormals(float[] normals); void setNormals(float[] normals, boolean override); void setNormals(FloatBuffer normals); FloatBuffer getNormals(); boolean hasNormals(); void setIndices(int[] indices); void setIndices(int[] indices, boolean override); IntBuffer getIndices(); void setTextureCoords(float[] textureCoords); void setTextureCoords(float[] textureCoords, boolean override); FloatBuffer getTextureCoords(); boolean hasTextureCoordinates(); void setColors(int color); void setColors(float[] colors); void setColors(float[] colors, boolean override); FloatBuffer getColors(); int getNumIndices(); int getNumVertices(); void setNumVertices(int numVertices); void setColor(float r, float g, float b, float a); void setColor(float r, float g, float b, float a, boolean createNewBuffer); String toString(); void destroy(); boolean hasBoundingBox(); BoundingBox getBoundingBox(); boolean hasBoundingSphere(); BoundingSphere getBoundingSphere(); BufferInfo getVertexBufferInfo(); void setVertexBufferInfo(BufferInfo vertexBufferInfo); BufferInfo getIndexBufferInfo(); void setIndexBufferInfo(BufferInfo indexBufferInfo); BufferInfo getTexCoordBufferInfo(); void setTexCoordBufferInfo(BufferInfo texCoordBufferInfo); BufferInfo getColorBufferInfo(); void setColorBufferInfo(BufferInfo colorBufferInfo); BufferInfo getNormalBufferInfo(); void setNormalBufferInfo(BufferInfo normalBufferInfo); int getNumTriangles(); void setBuffersCreated(boolean created); static final int FLOAT_SIZE_BYTES; static final int INT_SIZE_BYTES; static final int SHORT_SIZE_BYTES; static final int BYTE_SIZE_BYTES; static final int VERTEX_BUFFER_KEY; static final int NORMAL_BUFFER_KEY; static final int TEXTURE_BUFFER_KEY; static final int COLOR_BUFFER_KEY; static final int INDEX_BUFFER_KEY; }