#pragma once

#include "polygon.h"

//
//a diagonal
//
struct diagonal
{
	uint v[2]; // id to the vertices 
};

//
//given a polygon, compute a list of triangles that partition the polygon
//
void triangulate(c_polygon& poly, vector<diagonal>& diagonals );

