MindFusion.Wpf Pack Programmer's Guide
RoutingOptions.NodeVicinityCost Property
See Also
 





Gets or sets the size of a buffer zone around a node for which routes get a penalty cost if they pass through it.

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

 Syntax

C#  Copy Code

public byte NodeVicinityCost { get; set; }

Visual Basic  Copy Code

Public Property NodeVicinityCost As Byte

 Property Value

A byte value specifying the node vicinity cost. The default is 2.

 Remarks

This is a penalty value added to the total cost of an evaluated link route if it passes too close to a node. The routing algorithm aims to find paths that have a minimal cost, so assigning a greater value to NodeVicinityCost makes links avoid passing close to nodes. The size of the buffer area around nodes in which passing links get a penalty cost is set by NodeVicinitySize.

 See Also

RoutingOptions Members
RoutingOptions Class
MindFusion.Diagramming.Wpf Namespace
CrossingCost Property
LengthCost Property
TurnCost Property