Return a failing code if kernel fails to generate a mesh or if the mesh has no volume, which can be cause by invalid parameters.