Grasshopper

algorithmic modeling for Rhino

Hi forum,

I am wondering if it's possible to assign paths through integer masks in Vb, while respecting the sequence of both the data and the path masks.

here is my attempt, which I knew that would work because of the way that datatrees operate.

Dim newPaths As New DataTree(Of System.Object)

For i As Int32 = 0 To newTree.Count - 1

Dim St As New String(data_tree(i))
print(St)
Dim pathxxx As New GH_Path(newtree(i))
print(pathxxx.ToString)
newPaths.Add(St, pathxxx)

Next

A = newPaths

has anyone manage to provide a solution to this matter, or rather is a solution available at all?

attached you will find the def.

Best,

M.

Views: 463

Attachments:

Replies to This Discussion

just popping this up, seeing David is around!! :)

The order of paths in a tree is not something you can set, it's defined by the sorting order. I.e. it doesn't matter in what order you add branches, they always end up {0}, {1}, {2}... etc.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Thanks for your reply David. I figured out that this is the default behavior. To tell you you the truth I am not sure where this ordered path assignment can be used, I was just answering a question at the forum and this came up. Anyway thanks for clarifying that.

Best,

M.

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