I am looking for a smart way to colour the model surfaces based on a specific feature. For example I use attribute dictionaries to set some surface properties for my simulation engine and I would like to be able to quickly verify whether the property has been assigned or not.
At the moment the only way I could come up with was to store in the attribute dictionary itself the reference to the original material of the face and then use this reference to reassign the original material when needed. This method is quite slow when the number of surfaces increases considerably and this happens very often with the models I deal with.
Is there a better way to do this?