sgCObject* sgKinematic::Extrude(const sgC2DObject& outContour, const sgC2DObject** holes, int holes_count, const SG_VECTOR& extrDir, bool isClose)
Creates a solid or a surface of extrusion by extruding an object along a vector.
holes - array of holes. The holes must be flat (checked by the IsPlane function), closed (checked by the IsClosed function) and not self-intersecting (checked by the IsSelfIntersecting function). The holes must lie on the same plane as the outer contour (checked by the IsObjectsOnOnePlane function) and strictly inside it (checked by the IsFirstObjectInsideSeconfObject function). The holes must not be intersecting (checked by the IsObjectsIntersecting function) neither can they be inside each other (checked by the IsFirstObjectInsideSeconfObject function). If the argument is NULL the object is created withour holes.
holes_count - the number of holes in the holes array.
extrDir - extrusion vector. Mustn't be zero
isClose - whether to close to a solid. The argument is ignored if the outer contour isn't closed.
Returns the pointer to a newly created object. If the function fails NULL is returned.