correcting the draw polygon function so it corectly place the center of each mesh