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

amir gave more information on the question:
Hello,

Is it possible to remove (clear) a specific number of bodies (not
erasing) in Yade? I need to get rid of the Null bodies generated before.
The erased bodies cannot be seen but their id are still available.

for i in range(0,10):                                                
    if isinstance (b.shape,Sphere): O.bodies.erase(i)

clear the same bodies?

Thanks in advance

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