Curves and splines

I need help with curves in OCC. Does anybody knows what type of splines are available in OCC? What is "Curve"? (is it some kind of spline? which one?)? And how i can create this splines by set of points? If anybody knows the answer, can you post it here?


Pawel's picture

Hi Grigoriy,

Geom_Curve in OCC is the base class for any geometrical curves. Those could be splines but other possibilities are possible as well (lines, circles etc.).

Concerning the splines, OCC implements NURBS. To create those you can either interpolate / approximate a set of points (GeomAPI_Interpolate / GeomAPI_PointsToBSpline) or construct the curve using the constructor (Geom_BSplineCurve).

For examples, browse the code of the samples provided with OCC or this forum.


Sheldon Lee's picture

Hi, Pawel, What's the difference between GeomAPI_Interpolate  and GeomAPI_PointsToBSpline ?

Sergey Slyadnev's picture

The first one is an interpolation algorithm while the second one is the approximation with a spatial tolerance (to obtain smoother result on oscillatory data).