Edge-matching polygons with a constrained traingulation