generalized Mesh Class