← Back to team overview

yade-users team mailing list archive

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

 

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

    Status: Open => Answered

Jan Stránský proposed the following answer:
Hello,

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).

cheers
Jan

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