sgCGroup* sgBoolean::Section(const sgC3DObject& obj, const SG_VECTOR& planeNormal, double planeD)
Description:
Creates a group of line segments which are the intersection of a 3D object surface and a plane, i.e. the line segments with all their points lying both on the surface of the first object and on the plane.
Arguments:
obj - 3D object,
planeNormal - normal to the plane,
planeD - free coefficient in the plane equation
Returned value:
Returns the pointer to a group of line segments which are the intersection of an object surface and a plane. If the object surface and the plane 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: