110,533
社区成员
发帖
与我相关
我的任务
分享
EXPORT void CppToCS_Interpolation(int n, int p, double U_Vector[], double output[],PolyLine_Point* Control_point,int *m)
{
//将插补封装在C++中只返回常规的结果给C#调用;
double Step_B = 0;
double ui = 0;
Node_List DP_List; //自定义结构
CpptoBSpline_Interpolation(n, p, U_Vector, Control_point, ui, 0.001, Step_B,DP_List);//递归
int L1 = 0;
L1 = DP_List.Amount();
*m = L1;
for (int j = 0; j < (*m); j++)
{
output[j] = DP_List.GetValue(j + 1);
}
return ;
}
[DllImport("InterpolationNC.dll", EntryPoint = "CppToCS_Interpolation")]
public unsafe static extern void CppToCS_Interpolation(int n,int p,double[] U_Vector,ref double[] output,PolyLine_Point[] Control_Point,[In,Out]ref int m);
#ifdef __cplusplus
#define EXPORT extern "C" __declspec (dllexport)
#else
#define EXPORT __declspec (dllexport)
#endif