Difference between revisions of "MergeATPA"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> function MergeATPA(const ATPA: T2DPointArray): TPointArray; </source> ==Availability== SCAR Divi 3.28 > Current ==Description=...")
 
(No difference)

Latest revision as of 00:32, 21 October 2011

Definition

function MergeATPA(const ATPA: T2DPointArray): TPointArray;

Availability

SCAR Divi 3.28 > Current

Description

Merges all TPointArrays in the given T2DPointArray ATPA by appending them to each other.

Example

var
  ATPA: T2DPointArray;

begin
  SetLength(ATPA, 3);
  ATPA[0] := [Point(1, 1), Point(2, 2)];
  ATPA[1] := [Point(3, 3), Point(4, 4)];
  ATPA[2] := [Point(5, 5), Point(6, 6)];
  WriteLn(TPAToStr(MergeATPA(ATPA)));
end.

Output:

(1,1);(2,2);(3,3);(4,4);(5,5);(6,6)

See Also