Search
QuickRouter.TurnCost Property
See Also
 





Gets or sets a value added to the total cost of a route if it makes a turn.

Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf

 Syntax

C#  Copy Code

public double TurnCost { get; set; }

Visual Basic  Copy Code

Public Property TurnCost As Double

 Property Value

double value specifying the turn cost. The default is 50.

 Remarks

This is a penalty value added to the total cost of an evaluated link route for each turn it makes. The routing algorithm aims to find paths that have a minimal cost, so assigning a greater value to TurnCost leads paths that make less turns (hence they have less segments).

 See Also