Use BRepBuilderAPI_MakePolygon API
  make a polygon, by adding gp_Pnt
  if use the ::Edge() will return the last edge
  if use the ::Wire() will return the whole polygon line segments