private void AddControlPointsAndGeneratePath(MsmtRectilinearPath shortestPathRouter, Path edgePath) { if (!edgePath.EdgeGeometry.HasWaypoints) { Point[] intersectPoints = PortManager.GetPortVisibilityIntersection(edgePath.EdgeGeometry); if (intersectPoints != null) { GeneratePathThroughVisibilityIntersection(edgePath, intersectPoints); return; } } this.SpliceVisibilityAndGeneratePath(shortestPathRouter, edgePath); }