yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #13430
Re: [Question #402260]: Rotate pack
Question #402260 on Yade changed:
https://answers.launchpad.net/yade/+question/402260
Status: Open => Answered
Anton Gladky proposed the following answer:
2016-09-25 14:37 GMT+02:00 Luis Barbosa <question402260@xxxxxxxxxxxxxxxxxxxxx>:
> ag = pack.regularHexa(pack.inSphere((0,0,r),r),oriBody,radius=rad,gap=gap,color=(0,0,1))
It looks like inSphere does not have orientation parameter [1]. That
is logical, because
there is no sense to rotate the sphere in general case.
To escape such errors in the future, list parameters in "name=value" format:
ag = pack.regularHexa(pack.inSphere((0,0,r),r),orientation=oriBody,radius=rad,gap=gap,color=(0,0,1))
So, you will get an error instead of silence.
[1] https://yade-
dem.org/doc/yade.pack.html?highlight=insphere#yade._packPredicates.inSphere
Best regards
Anton
--
You received this question notification because your team yade-users is
an answer contact for Yade.