← Back to team overview

yade-users team mailing list archive

Re: [Question #690160]: i.geom.incidentVel is not a vector

 

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

Jérôme Duriez posted a new comment:
penetrationDepth and contactPoint are attributes of the ScGeom class,
not methods, so you can anyway not compare with the behavior for a
method like incidentVel()

I otherwise agree it's a little deceiving to have to type
i.geom.incidentVel(i)..

But I personally understand it thinking to i.geom.incidentVel(i), as
(i.geom).incidentVel(i), where (i.geom) is just a ScGeom object, with
all its attributes and methods, but with no more connection to the
interaction i itself.

So, when calling the incidentVel() method of that ScGeom object, you
have to pass again the interaction object that is "behind" (because the
computations behind incidentVel() require data that are in i itself, and
that are not contained in the ScGeom object i.geom)

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