← Back to team overview

yade-dev team mailing list archive

send attachment test

 

Referred to this

https://bugs.launchpad.net/bugs/1070744

I try to send an attachment. Please tell my if it works.
#over interactions

for i in O.interactions:

#check wether the interaction is Real

if i.isReal:

#check wether the interaction is between spheres or not

if isinstance(O.bodies[i.id1].shape,Sphere) and isinstance(O.bodies[i.id2].shape,Sphere):

#access bodies properties

y1 = O.bodies[i.id1].state.pos[1]; 

#loop over all bodies:

for ii in range(0,len(O.bodies)+1):
	b=O.bodies[ii]
	if b.isClump:
		print b.shape.members	#print all clump members

Follow ups