tunnel: Add regular polygon function.