Hi all
just one simple question. How to read DataTree in C# component (GH 0.7.30). Exist some simple example for that? When i try something like this ... i get some part from input, but im not sure if is it correct way how to make it.
private void RunScript(Curve geom, Plane plnA, Plane plnB, ref object A)
{
//your code here…
DataTree<object> t = (DataTree<object>) plnB;
Print(t.TopologyDescription);
for (int i = 0; i < t.BranchCount; i++)
{
GH_Path path = t.Path(i);
for(int k = 0; k < path.Length; k++)
{
Print("[" + i + ";" + k + "] " + t[path, k].ToString());
}
}
}
Jachym
Tags: