PK_BODY_create_minimum_topology   


PK_ERROR_code_t         PK_BODY_create_minimum_topology
(
--- received arguments ---
int                     n_topols,    --- number of topols
const PK_CLASS_t        classes[],   --- class of each topol
int                     n_relations, --- number of relations
const int               parents[],   --- parents
const int               children[],  --- children
const PK_TOPOL_sense_t  senses[],    --- sense in which child used by parent

--- returned arguments ---
PK_BODY_t        *const body,        --- created body
PK_TOPOL_t       *const topols,      --- created topols
PK_BODY_fault_t  *const fault,       --- fault indicator
int              *const fault_index  --- index of fault topol
)


This function creates the topology of a minimum body.


Specific Errors:
    PK_ERROR_bad_class             bad class in classes array
    PK_ERROR_bad_value             a value in parents or children array
                                   is not a valid index to classes array


Please refer to the documentation of PK_BODY_create_solid_topology.
This function is the same as PK_BODY_create_solid_topology with the exceptions
that the result is a minimum body and the permitted classes and numbers of
children and parents are as follows:

--------------------------------------------------------------------
Entity    Children      No. of children   Parents     No. of parents
--------------------------------------------------------------------
Body      Shell               1             -             -
Shell     Face                1           Body            1
Face      Loop                1           Shell           1
Loop      Vertex              1           Face            1
Vertex    None                0           Loop            1
--------------------------------------------------------------------

Note that although a face and a loop must be present in the
input to this function, the created body has no faces or loops and the entries
in topols corresponding to these inputs are set to zero.