PK_MESH_defect_tolerances_t   

struct PK_MESH_defect_tolerances_s
    {
    PK_LOGICAL_t             have_degen_tolerance;
                                --- whether a degeneracy tolerance is provided
                                --- (PK_LOGICAL_false)
    double                   degen_tolerance;
                                --- tolerance used to determine degeneracy
    PK_LOGICAL_t             have_slit_tolerance;
                                --- whether a slit tolerance is provided
                                --- (PK_LOGICAL_false)
    double                   slit_tolerance;
                                --- tolerance used for finding slits
    PK_LOGICAL_t             have_height_tolerance;
                                --- whether a height tolerance is provided
                                --- (PK_LOGICAL_false)
    double                   height_tolerance;
                                --- tolerance used for foldover height
    };

typedef struct PK_MESH_defect_tolerances_s PK_MESH_defect_tolerances_t;



This structure holds a set of tolerances to be used in determining
whether a defect of a certain type exists or should be repaired.


Specific Errors:
    PK_ERROR_inconsistent_tolerance a 'slit_tolerance' or 'height_tolerance'
                                    has been provided that is less than the
                                    provided 'degen_tolerance' (MILD)

Used in:

PK_MESH_find_defects_o_t
PK_MESH_fix_defects_o_t


The defect tolerances structure has the following fields.

    'have_degen_tolerance'
        Whether 'degen_tolerance' is supplied.

    'degen_tolerance'
        If 'have_degen_tolerance' is set to PK_LOGICAL_true then
        this value will be used for determining when
        an mfacet or an mfin in the mesh is to be considered degenerate.
        The default will be the linear precision of the modeller.

    'have_slit_tolerance'
        Whether 'slit_tolerance' is supplied.

    'slit_tolerance'
        If 'have_slit_tolerance' is set to PK_LOGICAL_true then
        this value will be used for determining when
        two laminar mfins in the mesh are close enough to be considered
        as forming part of a slit. The default will be the linear
        precision of the modeller. It is an error to provide a
        'slit_tolerance' less than 'degen_tolerance'.

    'have_height_tolerance'
        Whether 'height_tolerance' is supplied.

    'height_tolerance'
        If 'have_height_tolerance' is set to PK_LOGICAL_true then
        this value will be used for determining when
        two mfacets in the mesh are to be considered as overlapping
        each other. This is used in finding/fixing foldover defects.
        The default will be the linear precision of the modeller.
        It is an error to provide a 'height_tolerance' less than
        'degen_tolerance'.