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

    Status: Open => Answered

Jan Stránský proposed the following answer:
> but I'm failed

next time please also provide info if / what you have tried

solution:
###
for b in O.bodies:
   if not isinstance(b.shape,Sphere): continue # skip facets
   r = b.shape.radius
   if r > 0.05 and r < 0.075:
      b.shape.color = (0,0,1) # set blue color
###

cheers
Jan

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

_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to     : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp

Reply via email to