public override Entity2D Copy() { var spline = new Spline2D( Closed, Periodic, NurbsData.ControlPoints, NurbsData.Knots.ToList()); if (spline.HasFitPoints = HasFitPoints) { if (TangentsExist) { spline.SetFitData(FitPoints, StartTangent, EndTangent); } else { spline.SetFitData(FitPoints); } } spline.LayerName = LayerName; return(spline); }
public void setfitdata(Spline2D spl, IEnumerable <Point2D> fitPoints, Vector2D startTangent, Vector2D endTangent) { spl.SetFitData(fitPoints, startTangent, endTangent); }
public void setfitdata(Spline2D spl, IEnumerable <Point2D> fitPoints) { spl.SetFitData(fitPoints); }