Grasshopper

algorithmic modeling for Rhino

In VB:

Array: Dim matriz as Integer() = new Integer(2){4, 6,1}

List: Dim lista as List(of integer) = new List(of integer)From{2,4,7}

DataTree: ¿?

In C#:

Array: int[] matriz = new int[3] {0,3,5};

List:   List<int> lista = new List<int> {3, 2, 2 };

DataTree: ¿?

I would like to fill the tree with gh_paths (not the content of each branch). Is posible?

Thanks.

Views: 255

Replies to This Discussion

I don't think so, perhaps with LINQ, but I don't do LINQ.

I'd just write:

foreach (GH_Path path in paths)

  tree.EnsurePath(path);

where paths can be any collection of GH_Path instances.

Ok, not bad. 

Thank you David.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2025   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service