← Back to team overview

yade-users team mailing list archive

Re: [Question #707090]: How to generate a cylinder?

 

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

    Status: Open => Answered

Karol Brzezinski proposed the following answer:
Hi William,

Maybe try facetCylinder [1] (a prism made of facets that approximates a
cylinder):

#######
import geom
O.bodies.append(geom.facetCylinder(center = (0,0,0), radius=1, height=2, orientation=Quaternion((1, 0, 0), 0), segmentsNumber=20))
#######


Cheers,
Karol

[1] https://yade-
dem.org/doc/yade.geom.html?highlight=facetcylinder#yade.geom.facetCylinder

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