← Back to team overview

yade-users team mailing list archive

Re: [Question #705005]: problem of erasing particle

 

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

Jérôme Duriez posted a new comment:
As a suggestion, are you sure you need this ParID list ? Maybe you could do without, for instance with 
for b in O.bodies:
  x = b.state.pos
  if ...
     O.bodies.erase(b.id)

which would at least make a simpler script (avoiding to have to wonder
how does it work to iterate over an evolving list)

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.