sofa icon indicating copy to clipboard operation
sofa copied to clipboard

[BarycentricMappers] Fix potential division by 0

Open epernod opened this issue 3 years ago • 2 comments

To avoid NaN propagation when a wrong constraint is created using barycentricMapper and CreatePointLine.

Also add a small changes in regularGrid done during debug division by 0.

fix https://github.com/sofa-framework/BeamAdapter/issues/55 (does it works across repo?)


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).

epernod avatar Oct 13 '22 11:10 epernod

[ci-build][with-all-tests]

epernod avatar Oct 13 '22 13:10 epernod

if it's fine for @fredroy you can set it to ready 👍

hugtalbot avatar Oct 13 '22 21:10 hugtalbot