← Back to team overview

yade-users team mailing list archive

Re: [Question #701308]: How to set a circle?

 

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

    Status: Open => Answered

Jan Stránský proposed the following answer:
> Can I use 0.bodies.append() for Generating ring.

depends on the definition of "Generating" etc.

Definitely you do not use 0.anything, you would get "SyntaxError:
invalid decimal literal". Use O (unicode u004f [3]) instead of 0
(unicode u0030 [4])

>From my point of view, O.bodies.append is for adding already generated
particles to simulation, not the command for generating. Although it
could be accepted that adding to simulation is a part of generating.

> The particle radius is 0.05, now I need to use these particles with a radius of 0.05 to form a circle with a radius of 1
> I think of facet

Please be consistent

> I think of facet.In addition,Can I use facetCylinder to generate a
cylinder.

Yes, using facetCylinder to create a cylinder made of facets is probably
the best practice.

Cheers
Jan

[3] https://util.unicode.org/UnicodeJsps/character.jsp?a=0030
[4] https://util.unicode.org/UnicodeJsps/character.jsp?a=004f

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