public static FloatBuffer createFloatBuffer(Vector3f... data) {
        if (data == null) {
            return null;
        }
        FloatBuffer buff = createFloatBuffer(3 * data.length);
        for (Vector3f element : data) {
            if (element != null) {
                buff.put(element.x).put(element.y).put(element.z);
            } else {
                buff.put(0).put(0).put(0);
            }
        }
        buff.flip();
        return buff;
    }
Generate a new FloatBuffer using the given array of Vector3f objects. The
FloatBuffer will be 3 * data.length long and contain the vector data as
data[0].x, data[0].y, data[0].z, data[1].x... etc.

@param data
           array of Vector3f objects to place into a new FloatBuffer
@return a new direct, flipped FloatBuffer, or null if data was null
jme3-core/src/main/java/com/jme3/util/BufferUtils.java