Grasshopper

algorithmic modeling for Rhino

filtering stream of values into different branches based on trigger booleans

I'm having trouble conceptually figuring out how to achieve what I'm after. I have an array of surfaces which somewhat resemble a series of rows and columns. I need to split the rows so I have two groupings alternating one to the next. What I have so far is a boolean which is triggered by a greater leap in measurements from a base curve which is parallel with the rows. So every 14th or so (not all rows are equal) I will get a true value which is a measurement above a fixed value I have given while the others remain false.

How could I turn this list of booleans which measures the leaps into two distinct paths? Alternatively I could use a series of paths, each created only when a true is encountered, after which all falses end up in this path until another true is encountered...?

i realise this sounds overly complicated, but it shouldn't be...

Views: 694

Replies to This Discussion

nevermind - did it with vb....
Too late:

There's probably a simpler method than this, without resorting to a scripting component.
THANKS vicente....i would prefer to be able to do it your way but it ends up being more intuitive - surprisingly - to just code it in vb...but this is good for the future.

best
Logical operations are often easier in vb.net. But trying to figure it out using the available components is more fun :P

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