UF_BREP_bsurface_s (查看源代码)
定义在: uf_brep_types.h
也被称为:
- UF_BREP_bsurface_t
- UF_BREP_bsurface_p_t
概述
A non-uniform rational b-spline (NURBS) surface is represented. The poles
array is constructed as follows. Each row is a u spline and each column is a
v spline, stored in row-major order. U indexes the columns and v indexes the
rows. The subscript into the poles array for any given pole defining the
surface is obtained as follows:
subscr = (num_poles_u v + u)
poles[subscr][0] = x coordinate
poles[subscr][1] = y coordinate
poles[subscr][2] = z coordinate
poles[subscr][3] = weight
In each direction, the number of knots = num_poles + order. The x, y, and z
coordinates are weighted.
A periodic NURBS surface in one or both directions is one that closes with
the same location and tangent vectors at the matching edges. Open C API
determines periodicity from the bsurface data.
Note that this structure is identical to UF_MODL_bsurface_s.
Data Members
num_poles_u
int
num_poles_v
int
order_u
int
order_v
int
is_rational
knots_u
double *
knots_v
double *
poles) [ 4 ]
double (*
u direction.