示例#1
0
        internal virtual bool GeneratePath(MsmtRectilinearPath shortestPathRouter, Path edgePath, bool lastChance = false)
        {
            var sourceVertices = PortManager.FindVertices(edgePath.EdgeGeometry.SourcePort);
            var targetVertices = PortManager.FindVertices(edgePath.EdgeGeometry.TargetPort);

            return(edgePath.EdgeGeometry.HasWaypoints
                    ? this.GetMultiStagePath(edgePath, shortestPathRouter, sourceVertices, targetVertices, lastChance)
                    : GetSingleStagePath(edgePath, shortestPathRouter, sourceVertices, targetVertices, lastChance));
        }