creat many polyhedra in a box

Asked by lip on 2019-01-15

sir,i want to creat many polyhedra in a box,is there any function like makeCloud can help me do that?I have tried to use the method that usr makeCloud function to creat sphere first,and then place the polyhedra in where sphere locate,but it didn't work. Look forward for your answer

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
lip
Solved:
2019-01-16
Last query:
2019-01-16
Last reply:
2019-01-15
Jan Stránský (honzik) said : #1

Hello,

please read [1]

> but it didn't work

please always be as specific as possible. "it didn't work" has very little information. Was there an error? If yes, what error? Was the result different than expected? Some other reason?

Also a MWE [1] would help a lot here.

You can use polyhedra_utils.fillBox function [2].

cheers
Jan

[1] https://yade-dem.org/wiki/Howtoask
[2] https://yade-dem.org/doc/yade.polyhedra_utils.html#yade.polyhedra_utils.fillBox

lip (mr.xie) said : #2

that solved my problem, thank you