From: Timothy S. <ti...@st...> - 2004-08-01 17:01:18
|
On Mon, 2004-07-26 at 10:26, Matthias Baas wrote: > By the way, has anybody tried out the trimesh stuff? For me, it only=20 > works on some meshes whereas sometimes it seems ODE is just ignoring=20 > about half of the triangles. =46rom what I've found, dGeomTriMeshDataBuildSingle1 should only be used with single precision numbers and dGeomTriMeshDataBuildDouble1 with doubles. TriMeshData.build was using BuildSingle1 even if ODE was built with double precision dReals resulting in incorrect vertex data. I've fixed this in CVS by replacing the call to dGeomTriMeshDataBuildSingle1 with one to dGeomTriMeshDataBuildSimple. Furthermore, it seems that these functions take the number of indices--not the number faces as was being passed before. This could explain why ODE was ignoring some of the triangles. --=20 Timothy Stranex <ti...@st...> |