← Back to team overview

yade-users team mailing list archive

Re: [Question #692998]: principal axis of clump

 

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

Jan Stránský posted a new comment:
Considering the "longest axis", I **think** (am not sure, you can test it), that if you check all sphere pairs sph1,sph2 and take the pair with maximum
length = (sph1.state.pos-sph2.state.pos).norm() + sph1.shape.radius + sph2.shape.radius
you then have the maximum clump size (quickly I cannot imagine a longer surface connection) and the axis is given by sph1.state.pos-sph2.state.pos

sph1.state.pos-sph2.state.pos is vector connecting sphere centers
(sph1.state.pos-sph2.state.pos).norm() is distance of centers

cheers
Jan

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