public void getTriangle(int index, int[] indices) {
        IndexBuffer ib = getIndicesAsList();

        // acquire triangle's vertex indices
        int vertIndex = index * 3;
        indices[0] = ib.get(vertIndex);
        indices[1] = ib.get(vertIndex + 1);
        indices[2] = ib.get(vertIndex + 2);
    }
Gets the triangle vertex indices at the given triangle index
and stores them into the given int array.

@param index The index of the triangle.
Should be between 0 and {@link #getTriangleCount()}.

@param indices Indices of the triangle's vertices
jme3-core/src/main/java/com/jme3/scene/Mesh.java