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
927 stars 312 forks source link

Component states : update of component /data #2005

Open hugtalbot opened 3 years ago

hugtalbot commented 3 years ago

A mechanism of component state is now available while it is still unused and the API is not spread over the code base.

We could work on generalizing it : delegating all functions (init, addForce etc) to make sure it uses the componentState. Then, internal update of component would be possible and check in the scene graph of each component would allow to detect issues and prevent from crashes.

Initially, this issue was only focused on "Deprecate the doUpdateInternal" : this API of internal update in BaseObjects should be removed and callbacks should be spread instead. As noticed in #1979

ChristianDuriez commented 1 year ago

I think that this task is connected to several topics: