PK_CURVE_spin   


PK_ERROR_code_t      PK_CURVE_spin
(
--- received arguments ---
PK_CURVE_t           curve,      --- curve to spin
const PK_AXIS1_sf_t *axis,       --- axis around which to spin curve

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


This function spins a curve to form a surface.



Specific Errors

    PK_ERROR_impossible_spin        cannot determine spun geometry
    PK_ERROR_unsuitable_entity      not one of the allowed curve types
    PK_ERROR_su_self_intersect      surface would be self intersecting


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 spinning the given curve around the given axis.

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