> I was thinking about how to better implement it, and did not find a
> better solution.
A bitmask? Then you would have
FOREACH(.. b,...){
// skip bodies with non-matching groupMask if mask is non-zero
// otherwise use all bodies
if(mask!=0 && (b->groupMask & mask)==0) continue;
/* do stuff here */
}
Just a suggestion.
v
_______________________________________________
Mailing list: https://launchpad.net/~yade-dev
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yade-dev
More help : https://help.launchpad.net/ListHelp