refactored GridTess into an abstract base class and a set of interfaces, preparing for representing polygonmeshes on the GPU as well.