public void add(Geometry g) {
        if (size == geometries.length) {
            Geometry[] temp = new Geometry[size * 2];
            System.arraycopy(geometries, 0, temp, 0, size);
            geometries = temp; // original list replaced by double-size list
        }
        geometries[size++] = g;
    }
Adds a geometry to the list.
List size is doubled if there is no room.

@param g
           The geometry to add.
jme3-core/src/main/java/com/jme3/renderer/queue/GeometryList.java