generate cells triangles