- This topic has 4 replies, 3 voices, and was last updated 8 years, 8 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Getting Started › [SOLVED] Open .OBJ or .STL files
Tagged: .OBJ files, 64_bits, MacOS, SOFA_1512
Hello,
i just download SOFA and i don’t understand if it is possible or not to open .OBJ or. STL files.
I don’t find the answer on the forum, maybe because it is too simple (but i block).
I work on Meshmixer and i would like to apply deformability on my objects.
Is it possible to work with .OBJ file or not ? When i try to open it (for example Bunny.obj from Meshmixer, nothing appear).
In addition, i don’t know if it is possible from meshmixer to export in .XML, .pscn, .scn files.
Thanks for your answer,
Alex.
Hi Alex,
Yes, SOFA can deal with .obj and .stl files but you can’t open them directly in runSofa.
To play with .obj files, you have to import them within a scene (.scn or .xml) and then open the scene with runSofa.
To import your .obj in a scene, you have to use the adequate Loader component. Have a look at this page of the documentation and the share/sofa/examples/Components/loader
examples in your SOFA folder.
Hope this helps,
Guillaume.
Hi Alex,
To add a small detail, you can have an example of loading a .obj object in the scene: /data/Softwares/sofa/src/master/examples/Components/loader/MeshObjLoader.scn
This scene shows you how to do it easily.
Cheers,
Hugo
Thanks for your answers, it works !
I took the MeshObjLoader.scn and change the filename, then i open the .scn file.
Perfect !!
I will soon update the associated page in the online documentation.
Cheers,
Hugo
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.