![]() |
PK_BCURVE_create_fitted |
PK_ERROR_code_t PK_BCURVE_create_fitted ( --- received arguments --- const PK_BCURVE_create_fitted_o_t *options, --- options for fit --- returned arguments --- PK_BCURVE_t *const bcurve, --- b-curve fit to input PK_BCURVE_fitted_fault_t *const fault --- any faults found ) This function creates a B-curve by fitting a curve to within a tolerance. Specific Errors: PK_ERROR_cant_make_bspline unable to fit a bspline to input curve The B-curve result of this function will have continuous first and second derivatives except possibly at parameters specified by the user as discontinuities. The curve to fit and controls for fitting the curve are provided in the 'PK_BCURVE_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 curve. If during fitting an error occurs an attempt will be made to return a B-curve 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.