is.mesh function

Checks if a mesh is valid