AdjustPointArrays
Aligns a point array to match best the input point array.
Syntax
C++
C#
Python
def AdjustPointArrays( inPoints: list[Point2D], inReferencePoints: list[Point2D], /, *, inAllowRotation: bool = True, inAllowScale: bool = False, inMaxIterationCount: int = 10, inMatchFraction: float = 0.75, inInitialTransformCount: int = 10 ) -> ( outAlignedPoints: list[Point2D] | None, outAlignment: CoordinateSystem2D | None )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inPoints | list[Point2D] | Points to be aligned | ||
![]() |
inReferencePoints | list[Point2D] | Points to align to | ||
![]() |
inAllowRotation | bool | True | Flag indicating whether rotation is allowed as a part of output alignment | |
![]() |
inAllowScale | bool | False | Flag indicating whether scale is allowed as a part of output alignment | |
![]() |
inMaxIterationCount | int | 1 - ![]() |
10 | Maximal number of iteration for the algorithm |
![]() |
inMatchFraction | float | 0.0 - 1.0 | 0.75 | Defines fraction of input points that is being fitted in every iteration |
![]() |
inInitialTransformCount | int | 1 - ![]() |
10 | Number of initial transforms to be tried out by the algorithm |
![]() |
outAlignedPoints | list[Point2D] | None | The aligned input points | ||
![]() |
outAlignment | CoordinateSystem2D | None | The transform that aligns best the input points |



