I have a short and probably simple question.
When I’m assigning my GH_Structure<GH_Point> to an output, it gives me strange data. (structure{n;n;n; …} )
The code is:
*private void RunScript(ref object oTree)*
{*
Point3d[,] pts = new Point3d[10, 10];*
for(int i = 0; i < pts.GetLength(0); i++)*
{*
for(int j = 0; j < pts.GetLength(1); j++)*
{*
pts[i, j] = new Point3d(i * 10 + j, 0, 0);*
}*
}*
GH_Structure<GH_Point> tree = new GH_Structure<GH_Point>();*
Use DataTree<T> in C# scripting components. GH_Structure<T> was developed for use within compiled conde in VS. Probably the C# comp does not recognize that object and cant cast it successfully to be displayed in the viewport
with DataTree<T> you cans till use IGH_Goo derived types.
Thank you very much for your answers!
I did not thought about that.
I have tried the code in visual studio studio and it has worked. @andheum
Yes Im working in vs. I just wanted to try it in the Csharp scripting component first.
So for me, the GH_Structure is still the way to go.
Thank you very much.
Best wishes,
Oliver