Some preparatory work toward a Mesh class