MakePath

Delphifunction MakePath(const ints: TArrayOfInteger): TPath64;

Delphifunction MakePath(const dbls: TArrayOfDouble): TPathD;


C++Path64 MakePath(const std::string& s);

C++PathD MakePathD(const std::string& s);


C# public static Path64 MakePath(long[] arr);

C# public static PathD MakePath(double[] arr);


C++In the supplied string, spaces with or without a comma are permitted between X and Y values. As well as spaces and a comma, the following formatting characters are also permitted between coordinates - (, ), {, }, [, ].

C++ Example:
    Path64 path1 = Clipper2Lib::MakePath("10,10, 100,10, 100,100, 10,100");
  
      

C# Example:
    
    Path64 path = Clipper.MakePath(new int[] {10,10, 100,10, 100,100, 10,100}));
  
      

Delphi Example:
    
  var TPath64;
  ...
    path = MakePath([10,10, 100,10, 100,100, 10,100]);