 |
PK_BODY_create_wire_topology |
|
PK_ERROR_code_t PK_BODY_create_wire_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 wire body.
NOTE: This function is deprecated and has been superseded by
PK_BODY_create_topology_2.
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 wire 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 Loops 1 or 2 Shell 1
Loop Edges >=1 Face 1
Edge Vertices <=2 Loops 2
Vertex None 0 Edges >=1
--------------------------------------------------------------------
Note that although a face and one or two loops 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.