← Back to team overview

yade-users team mailing list archive

Re: small question (SpherePack)

 

Hi Vaclav,

 from yade import pack
 sp=pack.randomPeriPack(radius=1.,rRelFuzz=0.,initSize=Vector3().ONE*10.)
sp.save('textfile')

works perfectly, thanks you very much :-)

Jan (Stransky :-) )
______________________________________________________________
> Od: "eudoxos" <eudoxos@xxxxxxxx>
> Komu: <yade-users@xxxxxxxxxxxxxxxxxxx>
> Datum: 05.03.2010 09:31
> Předmět: Re: [Yade-users] small question (SpherePack)
>
>> I will add this to SpherePack's docs
>> https://yade-dem.org/sphinx/yade.pack.html#yade._packSpheres.SpherePack
>> (later), thanks for a good question.
>
>Which reminded me of a much easier way:
>
>  sp.save('/some/text/file')
>
>in the format "x y z radius", one sphere per line.
>
>;-)
>
>
>
>_______________________________________________
>Mailing list: https://launchpad.net/~yade-users
>Post to     : yade-users@xxxxxxxxxxxxxxxxxxx
>Unsubscribe : https://launchpad.net/~yade-users
>More help   : https://help.launchpad.net/ListHelp
>



References