Question #404190 on Yade changed:
https://answers.launchpad.net/yade/+question/404190
Status: Answered => Open
Weimin Song is still having a problem:
Thank you, Jan.
I tried the code below, however, it doesn't work. Could you explain
your approach in more detail?
def myFunction():
intrs = []
for i in O.interactions:
b1 = O.bodies[i.id1]
b2 = O.bodies[i.id2]
if isinstance(b1.shape,Polyhedra) and
isinstance(b2.shape,Polyhedra):
intrs.append((i.id1,i.id2))
vtkExporter.exportInteractions(ids=intrs)
...
O.engines=[
ForceResetter(),
InsertionSortCollider(...),
InteractionLoop(...),
NewtonIntegrator(...),
PyRunner(command='myFunction()',iterPeriod=50),
]
--
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