Thread Previous • Date Previous • Date Next • Thread Next |
> 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
Thread Previous • Date Previous • Date Next • Thread Next |