public static void populateFromBuffer(Vector3f vector, FloatBuffer buf, int index) {
        vector.x = buf.get(index * 3);
        vector.y = buf.get(index * 3 + 1);
        vector.z = buf.get(index * 3 + 2);
    }
Updates the values of the given vector from the specified buffer at the
index provided.

@param vector
           the vector to set data on
@param buf
           the buffer to read from
@param index
           the position (in terms of vectors, not floats) to read from
           the buf
jme3-core/src/main/java/com/jme3/util/BufferUtils.java