yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #09185
how can i create a sphere ...
... in yadeWrapper.cpp?
I can create a new body, give it a position and insert it in bodycontainer:
shared_ptr<Body> bodyTmp=shared_ptr<Body>(new Body());
bodyTmp->state->pos = myPositionVector;
proxee->insert(bodyTmp);
How can I tell c++, that this body is sphere with a given radius?
How can I set the material in c++?
I found this:
http://docs.python.org/2/extending/embedding.html
Do I need to embed python in c++ for my purpose? Hope not!
Regards,
Christian.
Follow ups