Implement polygon mode