diff --git a/libsrc/geom2d/spline.hpp b/libsrc/geom2d/spline.hpp index 4cd70a69..156d8d89 100644 --- a/libsrc/geom2d/spline.hpp +++ b/libsrc/geom2d/spline.hpp @@ -258,7 +258,7 @@ template class DiscretePointsSeg : public SplineSeg { Array > pts; - GeomPoint p1, p2; + GeomPoint p1n, p2n; public: /// DiscretePointsSeg (const Array > & apts); @@ -267,9 +267,9 @@ public: /// virtual Point GetPoint (double t) const; /// - virtual const GeomPoint & StartPI () const { return p1; }; + virtual const GeomPoint & StartPI () const { return p1n; }; /// - virtual const GeomPoint & EndPI () const { return p2; } + virtual const GeomPoint & EndPI () const { return p2n; } /// virtual void GetCoeff (Vector & coeffs) const {;} @@ -323,7 +323,7 @@ void SplineSeg :: Partition (double h, double elto0, double h2 = min (EndPI().hmax, h/EndPI().refatpoint); double hcurve = min (hmax, h/reffak); - // cout << "Partition, l = " << l << ", h = " << h << endl; + CalcPartition (l, h, h1, h2, hcurve, elto0, curvepoints); // cout << "curvepoints = " << curvepoints << endl; @@ -847,11 +847,13 @@ DiscretePointsSeg :: DiscretePointsSeg (const Array > & apts) { for(int i=0; i