示例#1
0
 public IGraphic Extend(double distance, double segmentLength, JointType jointType, IEnumerable <Segment> segments = null)
 {
     if (_isContinuously)
     {
         return(GraphicHelper.Extend(_ToSegments(segmentLength).ToList(), distance, jointType, segments, IsClosed));
     }
     else
     {
         var graphics = _graphics.Select(graphic => graphic.Extend(distance, segmentLength, jointType));
         if (graphics.Any(graphic => graphic == null))
         {
             return(null);
         }
         return(new GraphicCompositeCurve(graphics, _isContinuously));
     }
 }
示例#2
0
 public IGraphic Extend(double distance, double segmentLength, JointType jointType, IEnumerable <Segment> segments = null)
 {
     return(GraphicHelper.Extend(ToSegments(segmentLength).ToList(), distance, jointType, segments, IsClosed));
 }