Exemple #1
0
        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);
        }
Exemple #2
0
 public void setfitdata(Spline2D spl, IEnumerable <Point2D> fitPoints, Vector2D startTangent, Vector2D endTangent)
 {
     spl.SetFitData(fitPoints, startTangent, endTangent);
 }
Exemple #3
0
 public void setfitdata(Spline2D spl, IEnumerable <Point2D> fitPoints)
 {
     spl.SetFitData(fitPoints);
 }