Analysis of CT-scan based hip with generic motion data

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Olesya Klets
Posts: 4
Joined: Thu Dec 05, 2019 5:15 am

Analysis of CT-scan based hip with generic motion data

Post by Olesya Klets » Sat May 02, 2020 8:32 am

Hello everyone,

A bit of background:

I would like to analyse hip moments and moment arms during gait for analysis if hip implant (testing different locations of the hip implant and how it affects hip muscles' moments and moment arms, hip joint reaction forces). I will use motion capture data from the OpenSim (so it is not subject-specific).

I have three stl files: right femur, left femur, pelvis. The rest of bones will be from OpenSim. I will scale them by one factor-these generic bones and try to apply this motion capture data from OpenSim. Is it doable in OpenSim?

My question is about first steps. I used ParaView and found what translations and rotations should be applied to my bones and that bones should by scaled by factor 0.001.

I have copied stl files to Geometry folder in OpenSim. I edited gait2392 simbody.osim in text editor and added translations, rotations, scale factor. When I open this model again in OpenSim, bones are missing.

I have no idea what I am doing wrong and would be grateful for help. I have read tutorials but didn't find a relevant info. Would be grateful for any advice.

I will add the screenshot of a part of the .osim code for one femur.

Thank you in advance for help!
Attachments
example.JPG
example.JPG (114.28 KiB) Viewed 194 times

Tags:

User avatar
Dimitar Stanev
Posts: 1096
Joined: Fri Jan 31, 2014 5:14 am

Re: Analysis of CT-scan based hip with generic motion data

Post by Dimitar Stanev » Mon May 04, 2020 12:44 am

Hi,

It is possible that the stl files are stored in millimeters. OpenSim uses meters and this means that if you import a geometry that is in mm then the vertices are very far away (e.g., 1000mm is interpreted as 1000m). To check this look at the values of the vertices in paraviw. If they are in the range of hundreds then you have to scale your geometry by a factor of 1 / 1000 before importing into OpenSim.

POST REPLY