Scaling model results in separating body.

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Quinten Humphrey
Posts: 36
Joined: Mon Feb 08, 2021 2:36 pm

Scaling model results in separating body.

Post by Quinten Humphrey » Tue Sep 14, 2021 8:19 pm

Hello all,

I scaled a model but it resulted in separating the body in half at the lumbar spine.
Screenshot (80).png
Screenshot (80).png (318.57 KiB) Viewed 290 times
I have been trying to figure out how to fix this issue but seem to be stuck. I imagine it might have something to do with the IVD joint between L3 and L4, but am not sure if that is the case. If you have any suggestions, I would appreciate it. Thank you.

Tags:

User avatar
Ayman Habib
Posts: 2235
Joined: Fri Apr 01, 2005 12:24 pm

Re: Scaling model results in separating body.

Post by Ayman Habib » Tue Sep 14, 2021 11:06 pm

Hi Quintin,

It is important to understand how scaling works and how it affects different components of an OpenSim model when using the scale tool. If bodies are attached using joints then the locations where the joint frames are attached to their corresponding bodies are scaled based on computed scale factors. This works relatively intuitively out of the box, especially if the scale factors are close which is typical. However, in a case where some "constraint" is used to relate bodies rather than a joint, this mechanism may not work if the constraint can't be generically scaled by the code. Assuming this is your case then you'll need to manually modify the constraint post scaling to put the model together again.

Please let us know what you find out.

Best regards,
-Ayman

User avatar
Quinten Humphrey
Posts: 36
Joined: Mon Feb 08, 2021 2:36 pm

Re: Scaling model results in separating body.

Post by Quinten Humphrey » Fri Sep 17, 2021 2:49 am

Thank you for your help. What I have done so far is change the location of the L3 IVD joint so it aligns with the lower extremities. I then ran the IK tool and what happened was the upper body, starting from the L3 IVD joint location going up, translated down towards the sacrum.

User avatar
Quinten Humphrey
Posts: 36
Joined: Mon Feb 08, 2021 2:36 pm

Re: Scaling model results in separating body.

Post by Quinten Humphrey » Mon Sep 20, 2021 11:40 am

I believe I figured it out. It involved editing the translations in the spatial transform of the L3_L4_IVDjoint

POST REPLY