c++ version fo polygrid