Hello! I am looking to mesh a very complex geometry that I have in a cad (step) file. After meshing I would like to export the mesh with boundary tags based on the surfaces in the original cad geometry. For example, if the shape were a cube, I would like to be able to specify that all mesh facets coming from the meshing of the “top” face of the cube have a certain tag, facets coming the “front” and “left” faces of the cube have a different tag, etcetera. The purpose of the tags is, of course, to apply boundary conditions later in my code.
I know one can tag geometry when building it with CSG but, as I said, my geometry comes from a CAD model and has thousands of faces in unknown order.
I can come up with geometric predicates to identify the surfaces I am interested into.
Is it possible to implement this with netgen? Can anyone share an example script or point me in the right direction?
I don’t care if it’s gonna be Python or C++, if I have to #include
OpenCASCADE and use it directly. Everything works.
Thanks in advance for any help!
Massimiliano