yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #02130
Re: IntSphere2IntSphere4SCG
> Both of these variables are not initialized? Can someone explain to
> me why are we shifting the position to calculate the Normal? And why
> are we using another boolean called 'force'?
They are both passed as function arguments.
force: always create the geom, even if spheres are far away (normally
not used, only if calling explicitAction):
https://www.yade-dem.org/index.php/API_Changes#6.12.2009.2C_r1862
shift2: periodicity shift, handled by the dispatcher (e.g.
pkg/common/Engine/Dispatcher/InteractinDispatchers.cpp:92), see also
https://www.yade-dem.org/index.php/API_Changes#1.12.2009.2C_r1832
> Q2. How does go and goReverse work? goReverse is absent in other
> similar classes.
Not needed, it should be handled by the dispatcher now; it used to be
called when argument types were reverse (e.g. functor taking Facet
+Sphere, but receiving Sphere+Facet).
References