internal static Shape PolylineFromPoints(Point[] points) { if (TriangleOrientation.Clockwise == Point.GetTriangleOrientation(points[0], points[1], points[2])) { return new Shape(new Polyline(points) { Closed = true }); } return new Shape(new Polyline(points.Reverse()) { Closed = true }); }