← Back to team overview

yade-users team mailing list archive

Re: [Question #681341]: Move or scale a facet


Question #681341 on Yade changed:

    Status: Open => Answered

Jan Stránský proposed the following answer:

shape.vertices are coordinates in local coordinate system. After a transformation
vGlobal = state.pos + state.ori*vLocal
you get the actual coordinates in global coordinate system.

to move the facet, simply change state.pos or set state.vel with O.step
(setting positions directly is not recommended in Yade).

to scale the facets, I think it should be enough to multiply the
vertices by the scaling factor (try it and let us know).


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