PK_CURVE_sweep   


PK_ERROR_code_t  PK_CURVE_sweep
(
--- received arguments ---
PK_CURVE_t       curve,         --- curve to sweep
PK_VECTOR1_t     direction,     --- sweep direction

--- returned arguments ---
PK_SURF_t *const surf           --- swept surface
)


This function sweeps a curve to form a surface.



Specific Errors:
    PK_ERROR_impossible_sweep       cannot determine swept geometry
    PK_ERROR_unsuitable_entity      not one of the allowed curve types
    PK_ERROR_invalid_geometry       invalid curve


The curve must be of one of the following classes:

    PK_CLASS_line
    PK_CLASS_circle
    PK_CLASS_ellipse
    PK_CLASS_bcurve

The function will attempt to return the simplest surface which is coincident
with the surface formed by sweeping the given curve in the given direction.

If the given curve is not an orphan, then the resulting surface will be
created as construction geometry in the owning part.