← Back to team overview

yade-users team mailing list archive

Re: [Question #674932]: makeClumpCloud from regularHexa pack

 

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

Jan Stránský proposed the following answer:
Hello,

> TypeError: No registered converter was able to produce a C++ rvalue of
type boost::shared_ptr<SpherePack> from this Python object of type list

as the error says, the function expect SpherePack, not just list of spheres. You can try something like (not tested):
###
c1 = pack.regularHexa(pred,r,-.00000005,color=(.5,.5,.5))
spc1 = SpherePack()
spc1.fromList(c1)
sp = pack.SpherePack()
sp.makeClumpCloud((0,0,0),(2,2,2),[spc1])
###

cheers
Jan

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