← Back to team overview

yade-users team mailing list archive

Re: [Question #235985]: Highest clump position in clump cloud

 

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

    Status: Open => Answered

Christian Jakob proposed the following answer:
hi sergio,

it is a bit tricky, but possible. one idea:

- give your clump clouds different color
- loop over clumps
- find maximum

example:

for b in O.bodies:
   if b.color= ???:
     maxHeight1 = max(maxHeight1,b.state.pos[2])
   if b.color= ???:
     maxHeight2 = max(maxHeight2,b.state.pos[2])
...

regards,

christian

p.s. i know, that i should use launchpad, but i can not access it  
right now. blocked in china?!

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