← Back to team overview

yade-users team mailing list archive

Re: [Question #690010]: how to find the facet-sphere contact

 

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

nobody posted a new comment:
Hi Jan,

I test the ids of the facets and spheres, the results show that i.id1 are set to facet. 
because if I set:         if isinstance(O.bodies[i.id1].shape,Facet) and isinstance(O.bodies[i.id2].shape,Sphere):  

##### I can get the facet ids.

but if I set another command:         if
isinstance(O.bodies[i.id1].shape,Sphere) and
isinstance(O.bodies[i.id2].shape,Facet):

#### the list from i.ids is empty.

best,
Yong

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