> +     py::def("getSpheresVolume",getSpheresVolume,"Compute the total volume 
> of spheres in the simulation (might crash for now if dynamic bodies are not 
> spheres)");
is it THAT difficult to check that? (what I read recently, using
typeid(Sphere)==typeid(*b->shape) might be faster than dynamic_cast).
One of my goals was that you "cannot" crash yade from python. If you
can, it is a bug. (Of course I know many ways to crash ;-) )

v






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

Reply via email to