← Back to team overview

yade-users team mailing list archive

Re: [Question #688156]: How to create a regular prism in Yade

 

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

    Status: Needs information => Answered

Jan Stránský proposed the following answer:
> I want to create a body shaped as a prism.

use box [1]

> I tried couple of times, I can't create a body shaped as a cylinder by
this class.

next time please post also what you have tried and why/how it went wrong.
E.g. you can try something like:
###
b=Body()
b.shape=Cylinder()
b.shape.length=1
b.shape.radius=1
O.bodies.append(b)
###

What do you want to do with the cylinder? just that Yade currently
(AFAIK) is not able to work reasonably with "pure" cylinders..

cheers
Jan

[1] https://yade-dem.org/doc/yade.utils.html#yade.utils.box

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