The FirstLineSetIndex parameter is used implement Settings->bRandomColors since random colors are determined using unique integers for each line set, which may be stored in separateUPreviewGeometryobjects. Since the initialization is partial this function doesn't set Settings->bVisualizationDirty, the caller should do that.