 |
PK_SURF_fix_self_int |
|
PK_ERROR_code_t PK_SURF_fix_self_int
(
--- received arguments ---
PK_SURF_t surf, --- surface to be fixed
const PK_SURF_self_ints_t *self_ints, --- self intersections
const PK_SURF_fix_self_int_o_t *options, --- options structure
--- returned arguments ---
PK_SURF_fix_self_int_r_t *const results --- results
)
This function attempts to fix self-intersections in the given surface.
This function does not support facet geometry [NF]
Specific Errors:
PK_ERROR_invalid_geometry The surface has invalidities other than
self-intersections (PK_ERROR_mild)
PK_ERROR_fix_self_int_failed Failure (PK_ERROR_serious)
This function generates one or more valid surfaces that are coincident with the
supplied 'surf'.
PK_SURF_find_self_int should first be called on 'surf', and the resulting
PK_SURF_self_ints_t structure passed to this function.
Surfaces are generated either by extracting valid regions of 'surf', or by
creating approximations. Where possible, the maximum deviation between 'surf'
and the resultant approximation will be limited by 'tolerance', however this
condition is not guaranteed.