setMaxTag() not working / random behavior (python API, built-in and OCC CAD kernel)
Hey guys
I am trying to create multiple meshes with the python api in a loop. To improve the performance of the creation, I want to delete the created part of the geometry, which got meshed already, because then it doesn't get carried further in the creation of further subgeometries. I need to have them independent, unfortunately. Additionally, I need the entity tags to be different from the first created geometry, which is how I came accross setMaxTag()
to set the new first tag. So, my goal is to create a subgeometry, mesh it and delete it and start creating the next subgeometry but with increased tag numbers, such that, when I merge them for a simulation the physical groups and the entities are separate.
To get to the problem. Depending on where I call setMaxTag()
it works as expected and the smallest entity number is what I defined with it, but sometimes it just doesn't do anything. Can you guys help me out here and let me know, how I setMaxTag()
is properly used and in which context. I really tried a lot, with synchronize()
, setting it after the first entity was created, both in combination, but I just can not predict it's behavior.
Thank you very much in advance.
Cheers Marco