paireks / dotbim

Minimalist file format for BIM
MIT License
160 stars 19 forks source link

dotbim and stl #27

Open raviapatel opened 1 year ago

raviapatel commented 1 year ago

This is a very interesting project. I am very interested in how this can be taken forward in context of 3d model to simulations. Therefore my question is are there converters for dotbim to stl or something which can be used for meshing in fem solver? I can imagine this could be straightforward as both format stores meshes

paireks commented 1 year ago

Hey @raviapatel!

The simplest solution if you'd like to convert to .stl is to use https://3dviewer.net/ exporter. You can easily update .bim file and export .stl from there to use it for meshing in another FEM software. 2023-06-14_14h43_23

Let me know what you think and the results of your tests :)

raviapatel commented 1 year ago

ok i see any solutions with python ??? which can be integerated directly in workflows?

paireks commented 1 year ago

I haven't created any .bim -> .stl Python scripts / converters, but I guess they should be relatively easy to implement. Check out this example with numpy-stl: https://micronote.tech/2020/12/Generating-STL-Models-with-Python/

paireks commented 1 year ago

Also you can check a trimesh library, that has some .stl capabilities: https://trimsh.org/trimesh.exchange.stl.html There is some example of .bim -> trimesh, so maybe this one would be interesting for you: https://github.com/paireks/dotbimpy/blob/master/dotbimpy/other/DotbimToTrimeshScene.ipynb