Hamiltonian evolutions of twisted polygons in