Raycast returns Bad Triangle Index after delete triangles in mesh...

When i delete triangles into the mesh and save the mesh, you can see correctly the new mesh but when you assign mesh collider and get the tringle index with raycast, return a bad triangle index…

What is the correct way to delete triangles of a mesh and after with raycast get the correct triangle index with the new edited mesh?

It seems that the array of triangles is disordered, but you can see the mesh with normals correctly.

Solved, the problem was into the storage way of the erased triangles.