sgCObject*   sgKinematic::Extrude(const sgC2DObject&  outContour, const sgC2DObject** holes, int holes_count, const SG_VECTOR& extrDir, bool isClose)

 

Description:

Creates a solid or a surface of extrusion by extruding an object along a vector.

 

 

Arguments:

outContour - outer contour. Must be flat (checked by the IsPlane function), closed (checked by the IsClosed function) and not self-intersecting (checked by the IsSelfIntersecting function).

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.

 

 

Returned value:

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

 

 

See also:

EXAMPLE of surface of extrusion EXAMPLE of solid of extrusion