PathEditDistance


Computes the edit distance between the input paths.

Syntax

C++
C#
Python
 
def PathEditDistance(
	inOldPath: Path,
	inNewPath: Path,
	/,
	*,
	outAlignment: CoordinateSystem2D | None = None
)
-> (
	outAdditions: int,
	outRemovals: int,
	outEditions: int,
	outOldCommonPoints: list[Point2D],
	outNewCommonPoints: list[Point2D],
	outAddedPoints: list[Point2D],
	outRemovedPoints: list[Point2D],
	outOldEditedPoints: list[Point2D],
	outNewEditedPoints: list[Point2D]
)

Parameters

Name Type Default Description
Input value inOldPath Path
Input value inNewPath Path
Output value outAdditions int
Output value outRemovals int
Output value outEditions int
Output value outAlignment CoordinateSystem2D | None None
Output value outOldCommonPoints list[Point2D]
Output value outNewCommonPoints list[Point2D]
Output value outAddedPoints list[Point2D]
Output value outRemovedPoints list[Point2D]
Output value outOldEditedPoints list[Point2D]
Output value outNewEditedPoints list[Point2D]