public IndexBuffer getIndicesAsList() {
        if (mode == Mode.Hybrid) {
            throw new UnsupportedOperationException("Hybrid mode not supported");
        }

        IndexBuffer ib = getIndexBuffer();
        if (ib != null) {
            if (mode.isListMode()) {
                // already in list mode
                return ib;
            } else {
                // not in list mode but it does have an index buffer
                // wrap it so the data is converted to list format
                return new WrappedIndexBuffer(this);
            }
        } else {
            // return a virtual index buffer that will supply
            // "fake" indices in list format
            return new VirtualIndexBuffer(vertCount, mode);
        }
    }
Acquires an index buffer that will read the vertices on the mesh
as a list.

@return A virtual or wrapped index buffer to read the data as a list
jme3-core/src/main/java/com/jme3/scene/Mesh.java