Class ManualRouter
Routes edges using user-defined waypoints without automatic path calculation. Used when Manual is set.
public class ManualRouter : IEdgeRouter
- Inheritance
-
ManualRouter
- Implements
- Inherited Members
Remarks
This router simply interpolates through the user's waypoints without obstacle avoidance. For guided routing that respects waypoints while avoiding obstacles, use OrthogonalRouter with Guided mode.
Properties
CornerRadius
Radius for corner smoothing (if enabled).
public double CornerRadius { get; set; }
Property Value
Instance
Singleton instance.
public static ManualRouter Instance { get; }
Property Value
SmoothCorners
Whether to smooth corners at waypoints.
public bool SmoothCorners { 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).