2D and 3D Polygon library