yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #23549
Re: [Question #691869]: how to change sphere color
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.