SPLINE_FIT_s (view source)
 
Defined in: uf_modl_types.h
 
Also known as:
 
Overview
Define the data structure used by UF_MODL_create_fitted_spline().
For "By Tolerance" method, you need to at least specify 'degree', 'num_of_points',
'points', 'tolerance' and 'num_of_segments'(must be zero).
For "By Segments" method, you need to at least specify 'degree', 'num_of_points',
'points', and 'num_of_segments'.
The "By Template" method is not supported at this moment.


Data Members

points
double *
coordinates for the points to be fitted.
points[0~2] = (x, y, z) for the 1st point,
points[3~5] = (x, y, z) for the 2nd point,
...

slopes
double *
The slope values.
slopes[0~2] = start slope when slope_flag = 1 or 3
end slope when slope_flag = 2,
slopes[3~5] = end slope when slope_flag = 3.

weights
double *
values for user-defined weights. Only positive values are allowed

tolerance
double
Tolerance value for the "By Tolerance" method.
This value will be ignored when the 'num_of_segments' is
positive

num_of_points
int
Number of points to be fitted

slope_flag
int
0=no slopes, 1=only start slope exists,
2=only end slope exists, 3=both end slopes exist

num_of_weights
int
Number of user-defined weights

weight_positions
int *
The index of points (from 1 ~ num_of_points) for the user-defined
weights to apply to

num_of_segments
int
Number of segments for the "By Segments" method.
Must be set to 0 for "By Tolerance" method.

degree
int
The desired degree for the fitted spline