← Back to team overview

yade-users team mailing list archive

Re: [Question #194186]: get informations from clumps (O.bodies.shape.members)

 

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

Klaus Thoeni posted a new comment:
Hi Christian, you could just use:

O.bodies[clump_id].shape.members[bodyid][0]
O.bodies[clump_id].shape.members[bodyid][1]

to get relPos and relOri of bodyid respectively.

Klaus

On Fri, 20 Apr 2012 05:35:38 PM Christian Jakob wrote:
> Question #194186 on Yade changed:
> https://answers.launchpad.net/yade/+question/194186
> 
>     Status: Open => Solved
> 
> Christian Jakob confirmed that the question is solved:
> Found out, that
> 
> b = O.bodies[clump_id]
> 
> id_member1 = b.shape.members.keys()[0]
> position_member1 = b.shape.members[id_member1][0]
> orientation_member1 = b.shape.members[id_member1][1]
> 
> will do what I want.

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.