From: christopher t. <chr...@gm...> - 2007-05-22 01:10:00
|
Hi there sorry if this seems a redundant question but, i'm in the process of hacking out an XODE viewer for a project i'm currently working on. i'm doing this in python with pygame, pyode, and pyopengl. one good thing is that i can get the AABB vertices (min/max for x,y,z) so that's a start for my viewer 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. right now, i've tried to iterate over an 'infinite series' (generator) of indexes for this data but i get a segmentation fault when i overstep the number of triangle indexes that are actually in the structure (for a trimesh with 20 triangles, i get a segfault when i iterate over 0 to 50 via a generator). i tried to do a try/except clause but, yeah...that doesn't quite stop segfaults. so is this data going to be provided in the next pyode release? thanks! ct |