/**
  * This method was created by a SmartGuide.
  * @return Point
  * @param a int
  * @param b int
  */
 public ColoredPoint getTriangle(int a, int b, Polygon p)
 {
     for (int i = 0; i < p.vertices.Count; i++)
     {
         if ((i != b) && (i != a))
         {
             if (p.areNeighbors(a, i) && p.areNeighbors(b, i) && (p.getColoredPoint(i).vertexColor == 0))
             {
                 return p.getColoredPoint(i);
             }
         }
     }
     return null;
 }