I’m trying to see if its possible to combine a data tree with a 2D array of points. This is just to scratch an itch. I know its better/easier without using the array, so its probably an impractical question.

Is it possible to combine the i,j style for loop of x,y locations with a DataTree?

There were a couple of similar questions like this, but not quite the same (at least I think).

```
{
// algo
Interval uDomain = S.Domain(0);
Interval vDomain = S.Domain(1);
double Ustep = uDomain.Length / U; // 0 = U
double Vstep = vDomain.Length / V; // 1 = V
DataTree<Point3d>[,] pts = new DataTree<Point3d>[U + 1, V + 1];
for (int i = 0; i < U + 1; i++)
{
double u = Math.Round(uDomain.T0, tol) + (Ustep * i);
GH_Path paths = new GH_Path(i);
for (int j = 0; j < V + 1; j++)
{
double v = Math.Round(vDomain.T0, tol) + (Vstep * j);
SurfaceCurvature sc = S.CurvatureAt(u, v);
pts[i,j].Add(sc.Point, paths); //this line gets the error
}
}
// output
P = pts;
}
```