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
C# Copy Code |
---|
public byte NodeVicinityCost { get; set; } |
Visual Basic Copy Code |
---|
Public Property NodeVicinityCost As Byte |
A byte value specifying the node vicinity cost. The default is 2.
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.
WpfDiagram Programmer's Guide | © 2024 MindFusion |