You are here: Start » FIL.NET » Invoke.FitPathToPath
Rotates and shifts a path to minimize average distance between its points and a reference path.
Namespace: | Fil |
---|---|
Assembly: | FilNet.dll |
Syntax
C++
C#
public static void FitPathToPath ( Fil.Path inPath, Fil.Path inReferencePath, Fil.PathOrientationAlignment inPathOrientationAlignment, int inIterations, float inFirstShift, float inFirstRotation, Fil.Path outPath, out Fil.CoordinateSystem2D outAlignment, out float outPathDistance )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inPath | Fil.Path | Path to be aligned. | ||
![]() | inReferencePath | Fil.Path | Path to align to. | ||
![]() | inPathOrientationAlignment | Fil.PathOrientationAlignment | EllipticAxes | Determines how to align paths orientation before the main algorithm. Default value: EllipticAxes. | |
![]() | inIterations | int | <1, INF> | 5 | Number of algorithm steps. Default value: 5. |
![]() | inFirstShift | float | 10.0f | Magnitude of possible shift at the first step in pixels. Default value: 10.0f. | |
![]() | inFirstRotation | float | 10.0f | Magnitude of possible rotation at the first step in degrees. Default value: 10.0f. | |
![]() | outPath | Fil.Path | Aligned path. | ||
![]() | outAlignment | Fil.CoordinateSystem2D | The coordinate system that geometrical objects defined in the context of the path should be aligned to. | ||
![]() | outPathDistance | float | Average distance of characteristic points of the input path from the reference path. |