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

    Status: Open => Answered

Jérôme Duriez proposed the following answer:
Hello,

Indeed the doc of the corresponding function does not really help here [1]... 
There is more information in the corresponding source code, namely in a comment 
appearing l. 11-13 of [2] (I do not blame you you did not find it..). It turns 
out this aabb() function is pretty much like aabbExtrema() function which is 
better documented [3]

In the end your aabb is a "tuple" ie (roughly) a list of 2 elements, each of 
them being a vector:
- aabb[0] (1st element of the tuple) is a vector describing the lowest corner 
of the predicate (xMin,yMin,zMin) for all (x,y,z) in the predicate
- aabb[1] (2d element of the tuple) is another vector describing the upper 
corner of the predicate (xMax, yMax,zMax) for all (x,y,z) in the predicate

Such that aabb[1][2]-aabb[0][2] is equal to zMax - zMin : the last
coordinate of a vector between the 2 corners.


Jerome

[1] 
https://yade-dem.org/doc/yade.pack.html?highlight=aabb#yade._packPredicates.inGtsSurface.aabb
[2] 
https://github.com/yade/trunk/blob/68092b127a9cc6a00be3ba7f4fc5dfb60530f0a7/py/pack/_packPredicates.cpp
[3] 
https://yade-dem.org/doc/yade.utils.html?highlight=aabbextrema#yade._utils.aabbExtrema

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

_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp

Reply via email to