generate cell triangles better