Question #689863 on Yade changed:
https://answers.launchpad.net/yade/+question/689863
Status: Open => Answered
Jan Stránský proposed the following answer:
Hello,
if you call subbox several time, you append to already existing list. One
solution is to reset the list before "for b in O.bodies" loop:
###
def subbox():
global ball_list1
ball_list1 = []
...
###
cheers
Jan
--
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