3D Collision Detection using a triangle signed distance function (SDF)