我编写了一个程序来显示一些压力测量值。我想使用 NURBS 进行细节可视化。所以我引导我在 这里输入链接描述
我的字段范围为 40x48 方格。所以 40 行和 48 列。Z 分量(高度)应该是可变的。
但我不明白如何定义
glMap2f(GL_MAP2_VERTEX_3, 0, 1, 3, 4, 0, 1, 12, 4, &ctrlpoints[0][0][0]);
// Parameter:
// target:
// What the control points represent (e.g. MAP2_VERTEX_3).
//
// u1:
// Range of the variable 'u'.
//
// u2:
// Range of the variable 'u.
//
// ustride:
// Offset between beginning of one control point and the next.
//
// uorder:
// The degree plus one.
//
// v1:
// Range of the variable 'v'.
//
// v2:
// Range of the variable 'v'.
//
// vstride:
// Offset between beginning of one control point and the next.
//
// vorder:
// The degree plus one.
//
// points:
// The data for the points.
我不知道如何在我的情况下设置参数。例如 u1 和 u2 是什么?或者我的控制点是什么?