[ODE] Trimesh collision: not all triangles are colliding

Erwin de Vries erwin at vo.com
Wed Jan 14 19:11:28 MST 2004

> >From Trimesh class:
> This one didn't work:
> void dGeomTriMeshDataBuild (dTriMeshDataID g, const void* Vertices,
>                                           int VertexStride, int
>                          const void* Indices, int IndexCount,  int
> TriStride);
> But we found that this one works:
> void dGeomTriMeshDataBuildSimple (dTriMeshDataID g, const
>                                   int VertexCount, const int* Indices,
>                                   int IndexCount);
> We have assigned data correctly with the first one, but only part of the
> terrain mesh would work. Same data we represented in different structures
> for the 2nd simple routine, it worked perfectly!
> Comments?

You must have done something wrong, because dGeomTriMeshDataBuildSimple()
internally calls dGeomTriMeshDataBuild(). :-) Check the sources to see what
the correct parameters are.

More information about the ODE mailing list