public static Polygon VectorListsToPolygon(List <List <Vec2> > lists) { Polygon p = new Polygon(lists.Count); int index = 0; foreach (List <Vec2> list in lists) { p.SetContour(index, Vec2d.FromVec2List(list)); p.SetHole(index++, false); } return(p); }