created is and get function for any polygon shape