From: Timothy S. <ti...@st...> - 2004-07-24 11:54:27
|
Hello, I think there is a problem with the dGeomTriMeshDataBuildSingle declaration. The ODE 0.5 manuals says: dGeomTriMeshDataBuildSingle (TriMeshData, // Vertices Bodies[BodyIndex].VertexPositions, 3*sizeof(dReal), (int) numVertices, // Faces Bodies[BodyIndex].TriangleIndices, (int) NumTriangles, 3*sizeof(unsigned int), // Normals Bodies[BodyIndex].FaceNormals); But collision_trimesh.h has the following definitions: /* * Build TriMesh data with single pricision used in vertex data . */ void dGeomTriMeshDataBuildSingle(dTriMeshDataID g, const void* Vertices, int VertexStride, int VertexCount, const void* Indices, int IndexCount, int TriStride); /* same again with a normals array (used as trimesh-trimesh optimization) */ void dGeomTriMeshDataBuildSingle1(dTriMeshDataID g, const void* Vertices, int VertexStride, int VertexCount, const void* Indices, int IndexCount, int TriStride, const void* Normals); I've changed the declaration in declarations.pyx and the call in trimeshdata.pyx to dGeomTriMeshDataBuildSingle1 to allow it to build. -- Timothy Stranex <ti...@st...> |