From: Ethan Glasser-C. <gl...@cs...> - 2007-05-30 00:24:43
|
christopher taylor wrote: > my next big issue is getting the triangles from a GeomTriMesh object, > unfortunately the sources to pyode and the documentation for pyode > indicate that this could happen getTriangle is available. > > unfortunately, it just isn't going to happen until a method for > getting the triangle index values is exposed in the pyode api. Sorry, it took me a long time to understand what you meant here. Attached is a patch which adds a getTriangleCount method to GeomTriMesh, using the dGeomGetTriangleCount function from ODE. I can't test it right now, but feel free to complain if it doesn't work. Ethan |