 |
PK_detail_hole_cb_f_t |
|
typedef int (*PK_detail_hole_cb_f_t)
(
--- received arguments ---
int n_faces, --- number of faces in hole detail
const PK_FACE_t faces[], --- faces in hole detail
PK_detail_def_hole_t hole_def, --- hole detail definition
PK_POINTER_t context --- context
);
This is the datatype for a hole callback function.
Used in:
PK_detail_hole_cb_t
PK_FACE_details_hole_o_t
A hole callback function is typically used to provide an overall classification
of a hole such as: simple drilled, countersunk, counterbored, counter drilled.
The integer return from this function is put into the 'cb_result' field of
the PK_detail_def_hole_t before this is returned from PK_FACE_classify_details.
The callback function is provided with all the faces that make up the hole
detail, the PK_detail_def_hole_t which defines the hole and a pointer which
the application may provide in the 'cb_context' field of the
PK_FACE_details_hole_o_t which allows for communication of any required data
between the application and its callback function.