PK_CYL_make_solid_body   

PK_ERROR_code_t  PK_CYL_make_solid_body
(
--- received arguments ---
PK_CYL_t         cyl,       --- cylindrical surface
PK_INTERVAL_t    range,     --- extent of cylindrical solid along its axis

--- returned arguments ---
PK_BODY_t *const body       --- solid body returned
)


This function creates a solid body from a cylindrical surface.


Specific Errors:
    PK_ERROR_zero_interval         the 'range' has no extent
    PK_ERROR_bad_interval          the 'range' goes outside the size box


The 'range' defines the part of the cylinder axis which will be inside the
cylindrical solid.  The 'range' is measured in the direction of the cylinder
axis with zero at the location in the basis_set of the cylinder's standard
form. At either end of this part of the axis, the solid will be bounded by a
plane at right angles to the cylinder axis.

If the cylinder is an orphan, it will become the surface of a face of the
created body.  If the cylinder is not an orphan, then a copy of it will be made
and this used to create the solid.

The basis_set in the standard forms of circles created for edge geometry
inherits the ref_direction from the basis_set in the standard form of the
given 'cyl'.