Class OrthogonalRouter
Routes edges using orthogonal (right-angle) paths that avoid obstacles. Uses A* pathfinding on a visibility graph.
public class OrthogonalRouter : IEdgeRouter
- Inheritance
-
OrthogonalRouter
- Implements
- Inherited Members
Remarks
Supports Guided mode where the router calculates paths that pass through user-defined waypoints while avoiding obstacles.
Properties
Margin
Minimum distance to maintain from obstacles.
public double Margin { get; set; }
Property Value
PreferredOffset
Preferred distance for horizontal segments from source/target.
public double PreferredOffset { get; set; }
Property Value
Methods
Route(EdgeRoutingContext, Edge)
Calculates waypoints for an edge to route around obstacles.
public IReadOnlyList<Point> Route(EdgeRoutingContext context, Edge edge)
Parameters
contextEdgeRoutingContextThe routing context containing graph information.
edgeEdgeThe edge to route.
Returns
- IReadOnlyList<Point>
A list of waypoints (including start and end points).