Recently I am using umesh,but the file generated by geom_mesh tool has only one region for the whole geometry, so I can’t set different materials for the geometry.
Could you please advise on how to correct these errors?
Could you let me know what CAD file format you have used with the meshing script?
Edit: Sorry, I haven’t noticed the attachment
The .stl format doesn’t have support for definition of multiple solids inside. When many bodies are exported into .stl, they are merged into a single body.
Also, some CAD tools perform a union operation for all bodies during export into some formats supporting definition of multiple bodies. FreeCAD, for example, does this with .3mf output.