← Back to team overview

yade-users team mailing list archive

Re: [Question #236237]: How to get Interaction info

 

Question #236237 on Yade changed:
https://answers.launchpad.net/yade/+question/236237

Bruno Chareyre posted a new comment:
Oh... you want to use this callback mechanism. Then why do you put a loop? It will make two nested loops on interactions in the end.
Callbacks for counting interactions is overkill really. It will also need to define a static int to be incremented by the callback, very unpleasant. 
Better write a single function counting interactions, without callbacks.

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.