Open bakpaul opened 3 weeks ago
Let's see this as a starting point of refactoring. This PR does the merge, the code is neither better nor worst than before, it just removes unnecessary duplication.
Still need to replace every iteration of StiffSpringForceField by SpringForceField and fix Cuda extension
[ci-build][with-all-tests]
PR is ready for me now. Still need to decide if I should refactor SofaOpenCL or not given the fact that it doesn't compile with the current SOFA's master branch --> to be discussed in the next SOFA-dev meeting.
[ci-build][with-all-tests]
[ci-build][with-all-tests]
StiffSpringForceField is basically an extension of SpringForcefield adding implicit solving. The only added value comes from the ability to define the springs using added data indices1, indices2 and lengths. This mechanism need to also be merged with the current one available in SpringForceField.
Related to https://github.com/sofa-framework/sofa/issues/248
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