yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #23476
Re: [Question #691701]: reference position of facet
Question #691701 on Yade changed:
https://answers.launchpad.net/yade/+question/691701
Status: Open => Answered
Jan Stránský proposed the following answer:
using utils auxiliary functions, like utils.sphere or utils.facet
(usually called without the utils. prefix), reference position
(state.refPos) is set the same as given position (state.pos).
In the case of facet, you pass vertices. The state.pos and state.refPos
is the center of inscribed circle. So once you know vertices, it just
some geometry calculations.
For implementation, see [1,2]
cheers
Jan
[1] https://gitlab.com/yade-dev/trunk/-/blob/master/py/utils.py#L267
[2] https://gitlab.com/yade-dev/trunk/-/blob/master/py/_utils.cpp#L175
--
You received this question notification because your team yade-users is
an answer contact for Yade.