Performance with reset color LUT when a model has hundreds or thousands of entities, and related coloring-by support
ModelBuilder is building a discrete color LUT for all entities in a single model after it is loaded. The LUT is using the UUID string as keys which when thousands entries are inserted into the table, it is taking a very long time to build the table.
After some internal discussion and talking with our users, we decide to change how we deal with coloring in ModelBuilder.
No need or visually-not-very-useful to have a discrete LUT when more than hundreds of entities exists, so we should remove our own LUT, and rely on Paraview's coloring support, such as vtkBlockColors array to generate random colors for coloring-by Entity, Volume, Group etc
In ModelBuilder preference, add options to set default colors for Volumes, Faces, Edges, Verts, and an option to whether display model entities with these colors by default when a model is loaded in.
We should be able to set color for the summary-entry (e.g. 10 faces entry) in the list view so that all its children get that color. This is similar to be able to set color to all selected entities.
Add an operation to randomly-color selected entities