Hello guys,
I have a stl file which contains 4 parts (see “test.stl” in the attachments).
https://ngsolve.org/media/kunena/attachments/1494/test.stl
As a first step I import this file and create a ngsolve mesh. Now I can print the following information:
print("materials = ", mesh.GetMaterials()):
materials = (‘default’,)
print("boundaries = ", mesh.GetBoundaries()):
boundaries = (‘default’, ‘default’, ‘default’, ‘default’, ‘default’, ‘default’, ‘default’, ‘default’, ‘default’, ‘default’, ‘default’, ‘default’, ‘default’, ‘default’, ‘default’, ‘default’, ‘default’, ‘default’, ‘default’, ‘default’, ‘default’, ‘default’, ‘default’, ‘default’)
As you can see I get all 24 boundaries but only one material. How to define different material parameters for the individual parts?
Thank you for your help!
Best,
Max
Attachment: test_2021-03-11.stl