ReducePath


Reduces the number of points in a path preserving its shape with the specified precision.

Syntax

C++
C#
Python
 
def ReducePath(
	inPath: Path,
	outPath: Path,
	/,
	*,
	inMaxDistance: float = 0.5
)
-> diagIntermediatePaths: list[Path]

Parameters

Name Type Range Default Description
Input value inPath Path Input path
Input value inMaxDistance float 0.0 - 0.5 Maximum distance between (possibly removed in the process) characteristic point of the input path and the output path.
Output value outPath Path Reduced path
Diagnostic input diagIntermediatePaths list[Path] Intermediate results on all levels of recursion of the Ramer algorithm