-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Topology.Mapping] Edge2QuadTopologicalMapping: use Links for required QuadSet components #4361
Conversation
7392769
to
f61e74b
Compare
[ci-build][with-all-tests] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -31,6 +31,13 @@ | |||
#include <sofa/core/BaseMapping.h> | |||
#include <sofa/core/behavior/MechanicalState.h> | |||
|
|||
|
|||
namespace sofa::component::topology::container::dynamic |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am surprised that forward declaration works with Links
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to try for the lolz but it works on MSVC. Curious to see if it will be the same for gcc/clang (if the CI does want to do its job) 😅
EDIT: it works too 👍
[ci-build][with-all-tests] |
…d QuadSet components (sofa-framework#4361) * use links for quad container/modifier * cleaning --------- Co-authored-by: Paul Baksic <[email protected]> Co-authored-by: erik pernod <[email protected]>
Edge2QuadTopologicalMapping needs QuadSet container and modifier, and was merely just searching into its node for them, with no check whatsoever. So if one of the two was not present, a crash happened without any warning/error...
So in this PR, links are added (so no need to search the context every time), warn the user if not set and let the component to Invalid
+ some cleanups for good measure
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