[ODE] Trimesh collision with Very Large Tris

Paul Cheyrou-Lagreze p.cheyroulagreze at free.fr
Mon May 3 15:41:36 MST 2004


When a mesh has very large triangle, collision doesn't happen ?

If this is an unknown bug, here's a simple test :

Just by adding the code below in Test_MovingTrimesh.cpp  start() function,
trimesh collision with anything else than trimesh doesn't work.

With a sphere, It fails in GetContactData() because "side" is negative,  
and even if I bypass this test, "Dist" is too large

///code that makes bunny 10x larger (but not taller)
for (int i = 0; i < VertexCount*3;)
    {
         Vertices[i] = Vertices[i] * 10;
         Vertices[i + 1] = Vertices[i + 1];
         Vertices[i + 2] = Vertices[i + 2] * 10;
         i += 3;
    }


A fallback would be to use a simple plane collide scheme, as triangle is  
so big that object just collide a "plane" part of it ?



More information about the ODE mailing list