← Back to team overview

yade-users team mailing list archive

Re: [Question #671171]: forcechain output

 

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.