 |
PK_MESH_find_defects |
|
PK_ERROR_code_t PK_MESH_find_defects
(
--- received arguments ---
PK_MESH_t mesh, --- mesh in which to find defects
const PK_MESH_find_defects_o_t *options, --- options structure
--- returned arguments ---
int *const n_defects, --- number of defects
PK_MESH_defect_details_t **const defects --- defects
)
This function finds defects on a mesh.
Specific Errors:
PK_ERROR_defect_failure failure (MILD)
PK_ERROR_bad_option_data max_defects < 0 (MILD)
PK_ERROR_bad_angle max_foldover_angle is either < 0 or > pi/2
(MILD)
This function examines a mesh and returns information about the defects found,
if any.
Defects are returned in arrays of PK_MESH_defect_details_t structures.
If there are no defects found, then 'n_defects' is returned as zero.
Parasolid will attempt to find all defects in a model (up to the max_defects
specified), but in certain circumstances this will not be possible.
If all options are left at their default value then all defects returned are
invalidities corresponding to faults returnable by PK_GEOM_check.
See here for more information.