polygon class and triangulation class