You are here: Start » AVL.NET » Invoke.ReducePath

Invoke.ReducePath

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

Namespace:Avl
Assembly:AvlNet.dll

Syntax

C++
C#
 
public static void ReducePath
(
	Avl.Path inPath,
	float inMaxDistance,
	Avl.Path outPath,
	Diagnostic<List<Avl.Path>> diagIntermediatePaths
)

Parameters

Name Type Range Default Description
inPathAvl.PathInput path.
inMaxDistancefloat<0.0f, INF>0.5fMaximum distance between (possibly removed in the process) characteristic point of the input path and the output path. Default value: 0.5f.
outPathAvl.PathReduced path.
diagIntermediatePathsAvl.Diagnostic<System.Collections.Generic.List<Avl.Path>>Intermediate results on all levels of recursion of the Ramer algorithm.

See also