Re: [Yade-users] [Question #697142]: Writing new Ip2 functor / order of contact partners

2021-05-20 Thread Bettina Suhr
Question #697142 on Yade changed: https://answers.launchpad.net/yade/+question/697142 Bettina Suhr confirmed that the question is solved: Thanks Jan Stránský, that solved my question. -- You received this question notification because your team yade-users is an answer contact for Yade.

Re: [Yade-users] [Question #697142]: Writing new Ip2 functor / order of contact partners

2021-05-20 Thread Bettina Suhr
Question #697142 on Yade changed: https://answers.launchpad.net/yade/+question/697142 Status: Answered => Solved Bettina Suhr confirmed that the question is solved: Thank you, Jan! The dynamic cast works really fine. The std::swap caused a compilation error, but it was easy to avoid the

Re: [Yade-users] [Question #697142]: Writing new Ip2 functor / order of contact partners

2021-05-20 Thread Jan Stránský
Question #697142 on Yade changed: https://answers.launchpad.net/yade/+question/697142 Status: Open => Answered Jan Stránský proposed the following answer: Hello, to test the specific instance, you can dynamic_cast the pointer and test if the cast was successful or not, something like:

Re: [Yade-users] [Question #697142]: Writing new Ip2 functor / order of contact partners

2021-05-20 Thread Bettina Suhr
Question #697142 on Yade changed: https://answers.launchpad.net/yade/+question/697142 Status: Answered => Open Bettina Suhr is still having a problem: Hi Vasileios, Thank you for the explanation, now I understand better why I have this problem. Your suggestion to use the

Re: [Yade-users] [Question #697142]: Writing new Ip2 functor / order of contact partners

2021-05-19 Thread Vasileios Angelidakis
Question #697142 on Yade changed: https://answers.launchpad.net/yade/+question/697142 Status: Open => Answered Vasileios Angelidakis proposed the following answer: Hi Bettina, The order of contact partners is determined inside the Ig2 functors using: FUNCTOR2D(Shape1,Shape2);