Question #682883 on Yade changed:
https://answers.launchpad.net/yade/+question/682883

Leonard posted a new comment:
Hi xuesong,
I am sorry that I make a wrong answer in #2.
You are right.
-->>list1.append(O.bodies.append(sphere((x1,y1,z1),radius=radius1)))
In this way, the list1 stores the id of the sphere.
The reason why I make the mistake is I did like this:
-->>s1=O.bodies.append(sphere((x1,y1,z1),radius=radius1))
-->>list1=[]
-->>list1.append(s1)
then in this way, the list1 stores the body of sphere.
Thank you again.
Cheers,
Leonard

-- 
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

Reply via email to