creat many polyhedra in a box
Asked by
lip
hello
i want to creat many polyhedra in a box with same size and i tried the code below, to replace the sphere with polyhedra i created:
from yade import pack, qt
from yade import polyhedra_
import random
#creat a polyhedra
polyMat = PolyhedraMat(
O.materials.
t=polyhedra_
sp=pack.
list=sp.
#replace the sphere with polyhedra
for s in list
O.bodies.
but it didn't work, the list turn out to be an int type, not a list, i would appreciate it if you can help me
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
This question was reopened
- by lip
To post a message you must log in.