Search
RoutingOptions.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
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

public byte TurnCost { get; set; }

Visual Basic  Copy Code

Public Property TurnCost As Byte

 Property Value

A byte value specifying the turn cost. The default is 4.

 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