sgCObject*   sgSurfaces::SewSurfaces(const sgC3DObject** surfaces, int surf_count)

 

Description:

Sews a number of surfaces into a single surface trying to create a solid if the surfaces limit the closed area. The surfaces must side with each other. If they don't a group of objects is created from the arguments.

 

 

 

Arguments:

surfaces - array of the pointers to sewn surfaces,

surf_count - the number of sewn surfaces in the surfaces array.

 

 

 

Returned value:

Returns the pointer to a newly created object. If the function fails NULL is returned.