close polygon vertices