You are here: Start » AVL.NET » AVS.JoinAdjacentPaths Method

AVS.JoinAdjacentPaths Method

Joins those paths of an array which endpoints lie near enough.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void JoinAdjacentPaths
(
	IList<AvlNet.Path> inPaths,
	float inMaxDistance,
	float inMaxAngle,
	float? inMaxDeviation,
	float inExcessTrim,
	float? inEndingLength,
	AvlNet.PathJoiningMethod inJoiningMethod,
	AvlNet.PathJoiningAngleMeasure inAngleMeasure,
	bool inIgnorePathEndsOrder,
	bool inAllowCycles,
	float inMinPathLength,
	IList<AvlNet.Path> outPaths,
	NullableRef<SafeList<AvlNet.Path>> outMatchedPieces
)

Parameters

Name Type Range Default Description
inPathsSystem.Collections.Generic.IList<AvlNet.Path>
inMaxDistancefloat<0.0f, INF>10.0fMaximal distance between paths that can be joined. Default value: 10.0f.
inMaxAnglefloat<0.0f, 180.0f>30.0fMaximal allowed angle between paths being joined. Default value: 30.0f.
inMaxDeviationfloat?<0.0f, INF>Maximal allowed thickness of a minimal stripe containing both paths being joined. Default value: atl::NIL.
inExcessTrimfloat<0.0f, INF>Length of the part of each path to be removed from its both sides.
inEndingLengthfloat?<0.0f, INF>0.0fDetermines the length of the path end used for path angle computing. Default value: 0.0f.
inJoiningMethodAvlNet.PathJoiningMethodAddBridgeDetermines a method to join two paths in one. Default value: AddBridge.
inAngleMeasureAvlNet.PathJoiningAngleMeasureInputPathOrientationDetermines a method to measure the angle between two input paths. Default value: InputPathOrientation.
inIgnorePathEndsOrderboolTrueIf set to false, only the end of a path can be joined with the begin of another path. Default value: True.
inAllowCyclesboolTrueDetermines if cycles can be created during joining process. Default value: True.
inMinPathLengthfloat<0.0f, INF>0.0fMinimal length of a path. Default value: 0.0f.
outPathsSystem.Collections.Generic.IList<AvlNet.Path>
outMatchedPiecesAvlNet.NullableRef<AvlNet.SafeList<AvlNet.Path>>Input paths that have been joined with another path. Can be null to skip this parameter calculation.

Function Overrides

See also