protected FloatingPort MakeMultiRelativeObstaclePort(RectilinearEdgeRouter router, Shape obstacle, List<Point> offsets) { var port = MakeMultiRelativeObstaclePort(obstacle, offsets); router.UpdateObstacle(obstacle); // Port changes are now auto-detected return port; }
protected FloatingPort MakeAbsoluteObstaclePort(RectilinearEdgeRouter router, Shape obstacle, Point location) { Validate.IsNotNull(router, "Router should not be null"); var port = MakeAbsoluteObstaclePort(obstacle, location); router.UpdateObstacle(obstacle); // Port changes are now auto-detected return port; }