- This topic has 2 replies, 2 voices, and was last updated 2 years, 11 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Using SOFA › Getting The Position Of Two Mapped Volumetric meshes
Tagged: Linux_ubuntu, SOFA, SOFA_2106
Hi @ma1991
Thanks for your question.
Positions of an object are stored in the component MechanicalObject. This component is storing the degrees of freedom / state information: rest_position (equals to initial position if not specified), position, velocity.
I would therefore recommend to access the initial position from MechanicalObject.rest_position and the current position from MechanicalObject.position. Your total displacement would therefore be: position-rest_position.
I hope this helps
Best wishes,
Hugo
Many thanks, Hugo! I think I should more elaborate on my questions, the purple and blue parts have it is own displacement stored since I mapped two different volumetric mesh, and now I have a displacement of each volumetric mesh, should be the net their summation?
Also, the results do sound not realistic, I made sure the units are unified, should I use this part “TetrahedronHyperelasticityFEMForceField”?
Thanks
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.