Grasshopper

algorithmic modeling for Rhino

so im trying to sort a grafted list that has an accompanying cull pattern based on the cull pattern. there are groups of "true" in each branch that are tangent (next to each other in the list) i would want to separate in to whole branches

something like: (cull pattern and source list on left, desired result on right)

Views: 1013

Replies to This Discussion

can this be done with the path mapper?

Get this (written "at once" ... meaning not tested AT ALL).

If mode == Demo it does the show for you, else waits for your (matched) data.

Attachments:

Added a check more (mode = User) in case of a mismatch .

Attachments:

From my understanding this is not possible with pathmapper since it requires an iterative check on the state change within the list of booleans.

A scripte approach like peter's is the way to go.

Best,

M.

AWW I appreciate it. I figured it out before I saw this, although mine is much less elegant than that script. I used a combination of a shift list and XOR and the solution on this post:

http://www.grasshopper3d.com/forum/topics/retrieve-indices-of-true-...


Here is another way...

edit

just saw your solution. It's, more or less, the same...

Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2025   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service