sofa-framework / sofa

Real-time multi-physics simulation with an emphasis on medical simulation.
https://www.sofa-framework.org
GNU Lesser General Public License v2.1
934 stars 312 forks source link

[test] Add test on Data link between 1d vectors #5119

Closed alxbilger closed 1 week ago

alxbilger commented 1 week ago

To make sure that a Data<sofa::type::vector<sofa::type::Vec1d>> can be converted to a Data<sofa::type::vector<SReal>>


By submitting this pull request, I acknowledge that
I have read, understand, and agree SOFA Developer Certificate of Origin (DCO).


Reviewers will merge this pull-request only if

bakpaul commented 1 week ago

I understand that this conversion seems natural, but why is it needed and more over why should we make sure it is always the case ?

alxbilger commented 1 week ago

I need it in https://github.com/sofa-framework/sofa/pull/5122, where I make a link between a 1D position and a vector of reals (triangleData="@../constraintSpace/areaDoFs.position")