Is there a function call to create a spline that passes all given data points?

Hello,

I'd like to create a spline by given several passing points. I checked Geom_BSplineCurve class, it seems that I have to first find out control points for those given points in order to use its call. Is there a function that takes the given data points, and give out a spline that passes all those points in the given order?

Thank you for your advises.

Jane

Cauchy Ding's picture

Jane,

Check API GeomAPI_Interpolate.

Ding

Jane Hu's picture

Thanks, Ding. This is exactly what I needed.

Have a nice day!

Jane