Index was outside the bonds of the array

I'm trying to generate a surface with a function and using DPoint3D with coordinates read from excel. I worked out the following function but I'm getting the error: "Index was outside the bonds of the array"

Any idea what am I doing wrong here?

Thanks

function(CoordinateSystem CS, CoordinateSystem CSglob, ExcelRange Zs)
{
DPoint3d[][] Pontos = new DPoint3d(0, Series(-90,144,1), Zs.Value);
BSplineSurface Superf = new BSplineSurface();
Superf.ByPointsAsDPoint3d(CS,Pontos);
return Superf;
}

Parents Reply Children
No Data