Why can't I see my meshes after creating an osim
in the mesh importer?
#846
-
Hello, Thanks for developing this helpful platform. I'm a master student interested in musculoskeletal multibody modeling. I recently created a patient-specific model, using Opensim Creator software. I used mesh importer to import meshes reconstructed from CT scans, add bodies and finally add several muscles. However, I got one problem when I try to import the model into Opensim in order to simulate some gestures. I find in .osim file that there is no geometry attached to my model. But when I established my model, I had meshes for every body. It turns out that these meshes are below offset frame of each body. How could I visualize my model in Opensim? I will appreciate any kind help. Best regards, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The mesh importer automatically adds offset frames between each mesh and its associated body. This is to handle the case where meshes aren't body-centered (common when importing raw meshes from devices). It shouldn't cause an issue with either OpenSim Creator or OpenSim. Another thing the mesh importer does, though, is use absolute paths for mesh files. This is because both OpenSim and OpenSim Creator's .osim editor needs to find the mesh files, and many users tend to keep their mesh data somewhere else on their computer (which OpenSim cannot automatically deduce). The side-effect of this is that your If you believe that's your problem, then the fix is to create a "portable" osim directory. Effectively, this entails:
OpenSim and OpenSim Creator automatically search this directory when looking for geometry files. |
Beta Was this translation helpful? Give feedback.
The mesh importer automatically adds offset frames between each mesh and its associated body. This is to handle the case where meshes aren't body-centered (common when importing raw meshes from devices). It shouldn't cause an issue with either OpenSim Creator or OpenSim.
Another thing the mesh importer does, though, is use absolute paths for mesh files. This is because both OpenSim and OpenSim Creator's .osim editor needs to find the mesh files, and many users tend to keep their mesh data somewhere else on their computer (which OpenSim cannot automatically deduce). The side-effect of this is that your
.osim
file will initially contain paths likeC:\Users\adam\Documents\CTScans\Femur.obj
, …