I am trying to set the material of a topology face for a visualization, the visualization uses a custom user interface so I am not using AIS at all. Right now Im trying to implement setting the material of a face or shell. I do so currently just by using the index of a face by the order the topology explorer gives. However, after boolean operations, a face may become split into multiple faces and the order may change, which means the material is no longer properly assigned. Is there a way to give the data to the face object in open cascade, and in subsequent operations, it keeps the material data that it had originally no matter the operation?
Thanks, and please tell me if anything is unclear.