sofa
sofa copied to clipboard
[Constraint.Lagrangian] Update BilateralInteractionConstraint to support topological changes
- Add method to remove an interaction constraint given the dof index and the input mechanicalObject Id
- Add 2 Single Links to the topology containers to be set to activate topological changes support.
- Convert constraint index lists from
type::vector<in>
toTopologySubsetIndices
- Add callback on the subsetIndices to track topologcial changes. The callback are added only if valid Topology are found using the SingleLinks
- Add a demo scene: examples/Components/topology/TopologicalModifiers/RemovingBilateralInteractionConstraint.scn
Video of the Result: https://user-images.githubusercontent.com/21199245/191690072-003eb2c6-f0b9-458b-996b-6c37f3c3cac3.mp4
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
- it builds with SUCCESS for all platforms on the CI.
- it does not generate new warnings.
- it does not generate new unit test failures.
- it does not generate new scene test failures.
- it does not break API compatibility.
- it is more than 1 week old (or has fast-merge label).
In fact would be better to merge PR #3330 and #3331 before this one as they are fixing bugs found while doing this test.
[ci-build][with-all-tests]
[ci-build][with-all-tests]
@alxbilger @damienmarchal fine for you too guys?
Crash on RemovingBilateralInteractionConstraint.scn on MacOS
[ci-build][with-all-tests]
[ci-build][with-all-tests]
[force-full-build][ci-build][with-all-tests]
[force-full-build][ci-build][with-all-tests]
Relevant test results are correct now, ready.