BUG : Segment() of periodic Geom_BSplineCurve and Geom_BSplineSurface?

When I use the Segment() fuction to trim the periodic Geom_BSplineCurve and Geom_BSplineSurface, I always get some unpredictable control vertices, for example, in case of BSplineCurve, the second vertex from the back is strange.

theBSplineCurve->Segment(sp, ep);

Do anyone know whether there is a bug in Segment() or not?

Thank you in advance.


Vaclav Smilauer's picture

I have similar problems, although only if the curve is closed and periodic and if u1FirstParameter() or u2>curve->LastParameter(). Segment(u1,u2) should give reparametrized segment regardless of where begeinning and end of the original curve was, but works well only for FirstParameter