Creating 2d array of points to create surface

To use the geomAPI_pointstoBsplineSurface class to construct a surface you need to have an ordered 2d array of points, is that correct?

How must they be ordered and how does this order relate to the surface for it to work?

How would I built this array for an irregular shaped surface with greater than 4 sides? Is this possible?

Thankyou very much
RB

dled_25121's picture

Hi Roger,

To construct a surface with more than 4 sides, you would have to first subdivide your points to form 4-sided patches and then approximate.

Ordering the points in a typical matrix arrangement (plain line-by-line ordering) worked for me.

The resulting b-spline has a nice property, that the parameters 0 and 1 coincide with the corresponding edges of your point array