- This topic has 1 reply, 2 voices, and was last updated 4 years, 11 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Programming with SOFA › Mapping 2 states to one state
Tagged: 64_bits, Linux_other, mapping, SOFA_1906
Hi there!
I would like to know how to create a mapping of several states to one single state. I have some forces that depend on a state, but that state is defined kinematically as the sum of two other states (which are my degrees of freedom).
p = Bv + x
I have checked core::mapping
and BaseMapping
and in both cases they talk only about mapping 1 to 1.
How would you create a 2 to 1 mapping?
Thanks
Ola @jjcasmar
Good to have you back on the forum!
In SOFA MultiMapping does exist. Do you want to implement your own mapping or using an existing one? Could you provide us a bit more insight on what are your “states” that you want to map?
See examples in examples/Components/mapping/IdentityMultiMapping.scn or SubsetMultiMapping.scn
Cheers,
Hugo
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.