← Back to team overview

yade-users team mailing list archive

Re: [Question #688818]: Rototraslation of a cylinder

 

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

    Status: Open => Answered

Jan Stránský proposed the following answer:
> for t in range(min(idsr),max(idsr)+1):
>    ...
>   rullo1 = geom.facetCylinder(...)

are you sure you have only two cylinders? :-)
put the creating line oustide the for loop and it should work

another note, O.bodies.append returns list of IDs, so you can save some lines (and potention source of problems) as :
##
global idsr1
idsr1 = O.bodies.append(rullo1)
##

cheers
Jan

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