How to count the number of spheres and how to change the color of the facet
hello all
How does the following code count the number of spheres and how to change the color of the facet
#######
from yade import pack
import gts, os.path, locale
surf=gts.
surf1=gts.
if surf.is_closed():
pred=pack.
aabb=pred.aabb()
dim0=aabb[
O.bodies.
for b in O.bodies:
b.shape.color = (0,191/255.,1)
#surf.translate(0, 0, -(aabb[1][2] - aabb[0][2])) # move surface down so that facets are underneath the falling spheres
O.bodies.
#######
look forward to your reply
Thanks
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Jan Stránský
- Solved:
- Last query:
- Last reply: