← Back to team overview

yade-users team mailing list archive

Re: [Question #226967]: Create ChainedFacetCylinder

 

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

    Status: Solved => Open

Eugen Kubowsky is still having a problem:
And here's a brief summary what is done, if you want to modify the code
by yourself:

The segmented cylinder shall be considered as one body by yade, so you need a variable containing all parts of it. This variable is called "ret" in the code above.
Adding a segment to your body is done by simple adding it to ret.
Using the wallMask flag helps creating onyl lateral area of a facetcylinder (wallMask =4). [1]
Last thing to take care of is using the right center coordinates of the segments. They only differ in terms of z-coordinate in case of a z-axis aligned cylinder-stacking.

centerCurrentSegement=
Vector3(0.0,0.0,hSumOfAllPastSegments+hOfCurrentSegment/2.0)

Hope this helps.

---
[1]doc for wallMask:
>> wallMask (bitmask) – determines which walls will be created, in the order up (1), down (2), side (4). The numbers are ANDed; the >> default 7 means to create all walls

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.