Question #671171 on Yade changed:
https://answers.launchpad.net/yade/+question/671171
Status: Open => Answered
Jan Stránský proposed the following answer:
Use ids argument [1], something like (not tested):
ids = [(i.id1,i.id2) for i in O.interactions if
all(isintance(O.bodies[id].shape,Sphere) for id in (i.id1,i.id2))]
Jan
[1] https://github.com/yade/trunk/blob/master/py/export.py#L583
--
You received this question notification because your team yade-users is
an answer contact for Yade.
_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yade-users
More help : https://help.launchpad.net/ListHelp