3D Interpolation

Hi everybody,

I am really new with OpenCascade, and I would like to know if there is a function in a library that permits to interpolate some points in a 3D space. This function would create a surface from given points in the space, or give a mathematical expression of the surfacelike z = f(x,y). Does OpenCascade contain something in order to do that ?
I thank you very much in advance for your replies.

Bj

Sharjith Naramparambath's picture

Do you mean creating a surface from a point cloud? Have a look at the MFC Plate Sample. Click the "Surface from Points" tool button (second one). A file open dialog will pop up. Select any one of the sol1.dat or sol2.dat. These files contain points defined by 3 coordinates. The application will compute an approximate surface from the points. Hope this is what you are looking for.

Timo Roth's picture

You can look at GeomAPI_PointsToBSplineSurface if you want to interpolate a 2-dimensional array of 3D-points.