sgCGroup*   sgBoolean::Intersection(const sgC3DObject& aOb, const sgC3DObject& bOb)

 

Description:

Creates a group of objects which are an intersection of two objects, i.e. all the objects with points lying both on the first and on the second object.

 

Arguments:

aOb - first object,

bOb - second object.

 

 

Returned value:

Returns the pointer to a group of objects which are an intersection of the arguments. If the objects are not intersecting or in case of an internal error the function returns NULL.

 

Note:

 

An internal error may occur in case you call this function for the surfaces or solids with self-intersections (these solids may be constructed, for example, by a number of kinematic operations).

The function for correcting self-intersections of solids is planned in the next library version.

 

 

See also:

sgCGroup   EXAMPLE