Gets or sets a heuristic function used to evaluate the distance between two pieces of the routing grid.
Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming.Silverlight
C# Copy Code |
---|
public RouteHeuristics RouteHeuristics { get; set; } |
Visual Basic Copy Code |
---|
Public Property RouteHeuristics As RouteHeuristics |
A RouteHeuristics delegate used to evaluate the distance from a current routing grid piece to the target one. The default is Distance.
While generating a path, the routing algorithm evaluates pieces of the routing grid adjacent to the current one. It takes into account the cost for passing trough a piece and adds to that cost a heuristic value calculated by RouteHeuristics. So the smaller heuristic value a piece has, the greater the chance the found route to go through that piece.