yade-users team mailing list archive
Mailing list archive
Traversing the interactions on a body?
This question/remark is for Janek mostly, as I know he is thinking about
In the last days, I've been looking for a way to get the list of
interactions on a specified body.
If I'm correct, there is no way to get such list directly, whatever the
container, HashMap or VectorSet (one exception is if you are interested
in body id=1 only...). Could you confirm my conclusion?
Side note : Getting a list of interactions from a given body may be
usefull in a lot of cases. If you plan to write new containers, perhaps
you can keep this in mind. The problem is I don't see a way to do that
without duplicating one part of the data (i.e. the pointer to
interaction (i,j) would be stored in both lists associated to i and j).
For the moment, I think I will have to code something that will generate
for each body the list of interactions on it.
Maitre de conference
Institut National Polytechnique de Grenoble
Laboratoire 3S (Soils Solids Structures) - bureau I08
BP 53 - 38041, Grenoble cedex 9 - France
Tél : 33 4 76 82 52 76
Fax : 33 4 76 82 70 00
Yade-users mailing list