← Back to team overview

yade-dev team mailing list archive

Re: acces to sphere/wall information

 

> What is the equivalent command with python?
> 
> O.bodies.shape=sphere/wall/facet ?

for b on O.bodies:
	if b.name=='Sphere': ...
	elif b.name=='Wall': ...

(fast enough, I guess)

(https://www.yade-dem.org/sphinx/prog.html#run-time-type-identification-rtti)

v





References