private static IPath GetChangedSegments(ReshapeInfo reshapeInfo, RingReshapeSideOfLine proposedSide) { IPath replacedSegments; if (reshapeInfo.ReplacedSegments == null) { var ringToReshape = (IRing)reshapeInfo.GetGeometryPartToReshape(); IPath cutReshapePath = Assert.NotNull(reshapeInfo.CutReshapePath).Path; replacedSegments = SegmentReplacementUtils.GetSegmentsToReplace( ringToReshape, cutReshapePath.FromPoint, cutReshapePath.ToPoint, proposedSide); } else { replacedSegments = reshapeInfo.ReplacedSegments; } return(replacedSegments); }