rotate positions before triangulation