Regions for Umesh meshing

Dear experts,

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?

Thank you in advance!

Regards,
Yousef


umesh file.zip (3.2 MB)

Dear @dingyuan1991,

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.

Best regards,
Volodymyr

Thank you very much!