public static List <List <Vector2> > Waypoint(List <Vector2> triangles, bool isTriangle, out List <List <Vector2> > lines) // 简单多边形 点组 { List <Vector2> vert = new List <Vector2>(); List <List <int> > convexes = ConvexPolygonDecompose.Decompose(triangles, !isTriangle, ref vert); List <List <Vector2> > convexBorder; lines = Calculate(vert, convexes, out convexBorder); return(convexBorder); }
public static List <List <Vector2> > Waypoint(EarPolygon poly, out List <List <Vector2> > lines) // 简单多边形 点组 { List <Vector2> vert = new List <Vector2>(); List <List <int> > convexes = ConvexPolygonDecompose.Decompose(poly, ref vert); List <List <Vector2> > convexBorder; lines = Calculate(vert, convexes, out convexBorder); return(convexBorder); }