checks for existance and validity of vertices, faces and vertex normals of an object of class "mesh3d"
meshintegrity(mesh, facecheck = FALSE, normcheck = FALSE)
if mesh data are valid, the mesh is returned, otherwise it stops with an error message.
object of class mesh3d
logical: check the existence of valid triangular faces
logical: check the existence of valid normals