Points to B-splines (Passed)

Hi,

I am a beginner in using OCC, and I am still learning to use it. I want to ask if we could convert some sets of points into B-Spline curve ?
As we know, B-spline curve will approximate its control points, or in other words, it will not pass all the control points. Therefore I can`t use my sets of points as the control points. Is there anyway to let OCC find the appropriate control points and knots?

Thank you,

Sindharta

Stephane Routelous's picture

check GeomAPI_PointsToBSpline for 3d or Geom2dAPI_PointsToBspline for 2d

HTH,

Stephane
http://www.exotk.org

zaraasran's picture

Thank you. I am looking into that right now and will implement it immediately. Thanks.

Sindharta