Visualising TriMesh-TriMesh collisions?

xexuxjy
Posts: 225
Joined: Wed Jan 07, 2009 11:43 am
Location: London

Visualising TriMesh-TriMesh collisions?

Post by xexuxjy »

Has anyone got any recomendations how you could do a test between two triangle meshes and use the result to colour the colliding triangles so as to show up the collisions. I though using BvhTriangleMesh shapes as a starting point would give some degree of acceleration but it still seems to come down to testing each triangle in one mesh against each triangle in the other mesh which doesn't sound ideal at all.

Thanks,
pitsikoko
Posts: 11
Joined: Tue Jul 02, 2013 3:46 pm

Re: Visualising TriMesh-TriMesh collisions?

Post by pitsikoko »

I'm not sure if your requirement is to use bullet for that.

if not you could look at opcode collision detection library. i used it years ago and i remember you could easily check which triangles were intersecting.