Gets or sets a value added to the total cost of a route if it makes a turn.
Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming.Silverlight
C# Copy Code |
---|
public byte TurnCost { get; set; } |
Visual Basic Copy Code |
---|
Public Property TurnCost As Byte |
A byte value specifying the turn cost. The default is 4.
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).