Grasshopper

algorithmic modeling for Rhino


All data in Explicit History is stored in lists. There are several ways available to get at individual elements in list or to extract subsets of data. One of the easiest methods is to use a Split component. This component breaks a list of data into two sublists at the specified index.



The example shows how we can use a Split component to add branching behaviour to a definition. A sample file is attached.

Views: 3679

Attachments:

Replies to This Discussion

hi scott davidson,
i just have a question about splitting a list, about splitting a list not in two parts or branch, but into 3 or more branches
my question is form this example. the objective was to create 2 or more closed polyline as result of offseting the initial closed polyline curve by extracting the brep from subsurfaces i generated from the initial
surface. i threw ramdom numbers for the offest values, at these breps. but at the output of the curve offset component listed it all as a data tree with a single N value (only 1 list index). what happened was
for all the breps, it generated additional list,but an additional branch. can i ask for some possible solution.
was actually tring to make a surface planar for these curves for each brep, from the result of the offsetting. but it cannot because all the data branch has only one(1) data list.
thanx,
r i k i

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service