-
Notifications
You must be signed in to change notification settings - Fork 441
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Specify different wall material from STL file? #260
Comments
Hi @ikhwanuddin , the reason there is no documentation is simple: I don't know how to do it! One issue is that many 3D file formats are designed more for optical rendering which requires different parameters than acoustic rendering. Actually, importing STL files is not officially supported in pyroomacoustics, which is why there is no documentation. However, it is possible to some extent and I have included one example code, see |
Actually I have an idea how to do it. I was reading this #249 and checking his code, the thread starter implemented 2 types of material, then I found that there is *.material file which is used to add absorption coefficient to each facet inside *.stl. They are in the same order! Each row represents a material respective to a facet which is built inside *.stl. I must ensure that *.stl is in ASCII mode to read them all. OK, 10 to 30 facets maybe not a problem. What if I want to build a more complex 3D model? It could have a hundred or maybe a thousand facet with more than 5 different materials. If I know the order, maybe I can build *.material manually. That would be fine, this software package is free after all. Now the question is how to examine the facet order inside the *.stl file? I just had found that GMSH could activate this option for me. Tick mark "Node labels" and "2d element labels". Now I have all number in the correct order. Next, I will be experimenting a real project, in order to test if this really works or does not. I still need to modify his main.py file in order to accept my own *.material. |
@ikhwanuddin Thank you very much for the information! We had been discussing the idea of adding more mesh related stuff in pyroomacoustics, but came to the conclusion that there does not seem to be any python package for mesh processing that is both simple to install, has sufficient features, and compatible across major platforms. |
Hi, I am new here. I have learned pyroomacoustics for a while. Now, I am stuck at using customised room as an STL file. Then, I expect that this program could also specify each wall material as I imported from an STL file. However, I could not find the docs related to that.
Even, I read a master thesis published in 2022 (https://www.diva-portal.org/smash/get/diva2:1637682/FULLTEXT01.pdf) at page 24, stating that:
I work as a lecturer and I am interested in popularising this package to my students and colleagues in Indonesia. I look forward to any hints, examples, and guidances. Thank you!
The text was updated successfully, but these errors were encountered: