PK_BSURF_create_fitted   

PK_ERROR_code_t                    PK_BSURF_create_fitted
(
--- received arguments ---
const PK_BSURF_create_fitted_o_t  *options,       --- options for fit

--- returned arguments ---
PK_BSURF_t                  *const bsurf,         --- fitted B-surface
PK_BSURF_fitted_fault_t     *const fault          --- any faults found
)


This function creates a B-surface by fitting an input surface to within
a tolerance.


Specific Errors:
PK_ERROR_cant_make_bspline  unable to fit a bsurf to input surface


The function will produce a PK_BSURF_t with continuous second derivatives
except possibly at parameters specified by the user as discontinuities.

The surface to fit and controls for fitting the surface are provided in the
'PK_BSURF_create_fitted_o_t' option structure. The sample
data is provided to the fitting algorithm by an evaluator function which
may be either application-supplied or a Parasolid-internal surface.

If during fitting an error occurs an attempt will be made to return a B-surface
along with information on the error occurring. The 'fault' structure will
contain status information and error data for the fitting.

See here for more information about rebuilding B-Curves and
B-Surfaces.