Hi,
I would like to use the function GetParamAtPoint in C#, but there's something wrong with my code.
Code is like this;
double[] oCor = new double[3];
oCor[0] = -0.2;
oCor[1] = 0;
oCor[2] = 0;
double[] geussParam = new double[2]; //initializing this as 0,0 didn't make much difference
double[] maxDev = new double[2];
double[] paramsdf = new double[2];
SurfaceEvaluator OSE = default(SurfaceEvaluator);
OSE = oface.Evaluator;
SolutionNatureEnum[] soluNatur = new SolutionNatureEnum[1];
OSE.GetParamAtPoint(oCor, geussParam, maxDev, paramsdf, soluNatur);
Currently I use this function via a dll written in vb.net, but that's not really ideal.
Does anybody have a real solution?
thanks,
Solved! Go to Solution.
Try making the call as
OSE.GetParamAtPoint(oCor, geussParam, out maxDev, out paramsdf, out soluNatur);
Unfortunately the "out" parameter didn't work,
but it got me thinking, and when I use a "ref" in stead, it works.
Thanks for your help