UF_SO_spline_data_s (view source)
 
Defined in: uf_so.h
 
Also known as:
 
Overview
Structure definition for general spline data. It includes all the input
elements to create a general smart spline object.

The degree may be between 1 and 24.

The array size of interpolation type, position, direction, magnitude,
and curvature should all be number of positions. The array size for
parameter is number of positions for nonperiodic case and number of
positions + 1 for periodic case. For from pole method, the direction,
tangency and curvature constraints can be applied to start and end
positions only.

The parameters are for through point method only. Default parameters will
be used if the input is NULL.

The symmetric option can be applied to one end only for through point
method. You need to input symmetric direction for this option.


Data Members

method
int
creation method:
0 = through points
1 = from poles

degree
int
degree of the spline curve

periodic
int
0 = nonperiodic curve, 1 = periodic curve

nump
int
number of positions (points or poles)

itype
int *
array of integers for interpolation type at
each position:
0 = position only
1 = direction
2 = tangency (direction+magnitude)
3 = curvature (with tangency direction only)
4 = curvature (with tangency magnitude too)

position
tag_t *
array of point ids for positions

parameter
double *
array of real values for point parameters

direction
tag_t *
array of direction ids for tangent directions

magnitude
tag_t *
array of scalar ids for tangent magnitudes

curvature
tag_t *
array of offset ids for curvatures

symmetric [ 2 ]
int
symmetric option at start/end of the curve
0 = default
1 = symmetric model