 |
PK_TOPOL_facet_tables_cb_f_t |
|
typedef PK_ERROR_code_t (*PK_TOPOL_facet_tables_cb_f_t)
(
--- received arguments ---
PK_TOPOL_t topol, --- body that facets belong to
PK_TRANSF_t transform, --- transform associated with body
PK_TOPOL_facet_2_r_t *const tables, --- returned facet tables
PK_POINTER_t context --- context
);
Used in:
PK_TOPOL_facet_choice_2_o_t
This is the datatype for a facet tables callback function.
The callback function is provided with the body and transform that the facets
in the 'tables' correspond to, and a pointer which the application may provide
in the 'facet_tables_context' field of the PK_TOPOL_facet_2_o_t and allows for
communication of any required data between the application and its callback
function.
The function should return a PK_ERROR_code_t to Parasolid to indicate whether
it wishes to continue or abort. If PK_ERROR_no_errors is returned, Parasolid
will continue the operation as usual. If any other error code is returned,
Parasolid will abort faceting and return PK_ERROR_callback_failed from
PK_TOPOL_facet_2. If incremental faceting is enabled, this error code will
be designated as a severe error, otherwise it will be designated as a mild
error.