← Back to team overview

yade-users team mailing list archive

Re: [Question #706257]: Can YADE generate specific number of polyhedral particles in a packing?

 

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

    Status: Open => Answered

Jan Stránský proposed the following answer:
Simply:
###
sp = SpherePack()
sp.makeCloud(...) # specific number, sizes, ...
for center,radius in sp:
    createPolyhedronAtPositionWithSize(center,2*radius) # your own implementation
###

Cheers
Jan

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