示例:NURBS 曲面数据格式
Creo 用基本函数 (u 向和 v 向),及节点、宽度及控制点的可扩展阵列来定义 NURBS 曲面。下图给出了一个三次 NRUBS 曲面。
数据格式:
deg[2] | 基本函数(u 向和 v 向)的度数 |
u_par_arr[] | 参数线 u 上的节点阵列 |
v_par_arr[] | 参数线 v 上的节点阵列 |
wghts[] | 有理 NURBS 的宽度阵列,其它为 NULL |
c_point_arr[][3] | 控制点阵列 |
定义:
k = degree in u
l = degree in v
N1 = number of knots in u, degree in u -2
N2 = number of knots in v, degree in v -2
Bi,k = basis function in u
Bj,l = basis function in v
wi,j = weights
Ci,j = control points (x,y,z) * wi,j
重量和 c_points_arr 阵列表示大小为 wghts[N1+1] [N2+1] 和 c_points_arr [N1+1] [N2+1] 的矩阵。矩阵的元素压缩成以行为主次序的阵列。