Question #704996 on Yade changed: https://answers.launchpad.net/yade/+question/704996
Status: Open => Answered Jérôme Duriez proposed the following answer: Hi, Please see the example below, where the key is to apply O.bodies.erase to the clump body (its id) itself: def interrogate(b): '''Handy test function''' print('is body',b.id,'part of a clump ?',b.isClumpMember,not b.isStandalone,'(of clump with id',b.clumpId,'if yes)') for z in [0,2]: O.bodies.append(sphere((0,0,z),1)) clumpId = O.bodies.clump([0,1]) # creating the clump print('\nInitially:') interrogate(O.bodies[0]) O.bodies.erase(clumpId) # removing the clump print('\nAfter clump erasing:') interrogate(O.bodies[0]) -- 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 : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp