这里是数组的定义:float[,,] ctrlPoints=new float[,,]{ { {-6.0f,-6.0f,0.0f},{-6.0f,-2.0f,0.0f},{-6.0f,2.0f,0.0f},{-6.0f,6.0f,0.0f}},
                                    {{-2.0f,-6.0f,0.0f},{-2.0f,-2.0f,6.0f},{-2.0f,2.0f,6.0f},{-2.0f,6.0f,0.0f}},
                                    {{2.0f,-6.0f,0.0f},{2.0f,-2.0f,6.0f},{2.0f,2.0f,6.0f},{2.0f,6.0f,0.0f}},
                                    {{6.0f,-6.0f,0.0f},{6.0f,-2.0f,0.0f},{6.0f,2.0f,0.0f},{6.0f,6.0f,0.0f}}};这里是函数调用这个数组:
gluNurbsSurface(theNurb, 8, Knots, 8, Knots, 4 * 3, 3,ctrlPoints[0][0][0], 4, 4, GL_MAP2_VERTEX_3);
运行的时候出现的错误信息是:
Error Message 
Wrong number of indices inside [], expected 'number'
第二次我把它改成:
gluNurbsSurface(theNurb, 8, Knots, 8, Knots, 4 * 3, 3,ctrlPoints[0,0,0], 4, 4, GL_MAP2_VERTEX_3);
出错信息是:
Error Message 
The best overloaded method match for 'declaration' has some invalid argumentsThis error occurs when the argument types being passed to the method do not match the parameter types of that method. If the called method is overloaded, then none of the overloaded versions has a signature that matches the argument types being passed.这个函数的签名是:
public static extern void gluNurbsSurface(System.IntPtr nobj, int sknot_count, float[] sknot, int tknot_count, float[] tknot, int s_stride, int t_stride, float[] ctlarray, int sorder, int torder, uint type);请各位大虾指点,谢