New question #665341 on Yade:
This question might be a bit naive.
I have the following python function.
for b in O.bodies:
x,y,z = b.state.pos
if (x<boundaries or x>boundaries or
y<boundaries or y>boundaries or z<boundaries or z>boundaries): #
modify this condition to your needs
And many similar to this were i iterate through the body container and do
something to it.
My question is. Since those bodies are huge it has been suggested that i write
those functions in c++. I know how to write functions in c++to import in
I am not really sure however how to define a body in c++.
Any help is really appreciated
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@example.com
Unsubscribe : https://launchpad.net/~yade-users
More help : https://help.launchpad.net/ListHelp