Question #685862 on Yade changed:
https://answers.launchpad.net/yade/+question/685862
Jan Stránský proposed the following answer:
> Can I do this with aabbDim()?
no, aabbDim computes aabb (axis aligned bounding box) dimensions of the
sample (roughly the "maximum dimensions along axes").
To choose particles within a "ring" defined by radii r1 and r2, do:
### (not tested)
halfwayParticles = []
for b in O.bodies:
x,y,z = b.state.pos # maybe b.state.refPos
d = sqrt(pow(x,2)+pow(y,2)) # assuming z axis
if d > r1 and d < r2:
halfwayParticles.append(b)
###
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