Grasshopper

algorithmic modeling for Rhino

This is a simple example of re-ordering lists by paths. By using a series of a series you can create an index list that steps by the number of paths that steps by the number of items in each path. Confusing in the picture, but it is easier to understand in the image. This example, of course, works for only paths that have the same number of items!

Views: 12633

Replies to This Discussion

Hi Samuel

I hope that the example shows the operation of pathmapper and prune element.

Tanti saluti Renzo
Attachments:

This is truly helpful, Thanks for this.

But may I ask you a question, what if you want to make the inverse surfaces of what srfgrid component creates when you bake any of the 3 in the file??? i.e in curve set three when you bake the last component it gives you a 10 points surface and then leaves a 4 points one, what if I want to make a 4 points surface and then leave the space of a 10 points one?

Hi Sherif

 

a more flexible way.

 

Renzo

 

Attachments:

interesting one, thanks for that too.

Renzo:

May I ask you a very dumb question, Why you write {A;B}(i),

with "i" as data inside the tree?

 

I don´t know nothing about programming or else and I´m trying very hard to understand data trees.

 

Thanks for the previous files, now I´m finally getting some of its logic.

 

Best!

Rather similar question - I have set of N points and second set of M points.
I need to select several points nearest to each point of thr 1st set from the second set. There are to ways - function + cull pattern and simple sort + select item. Problems begun when i tried to this - becouse there will be M*N resulting data either from distanse (M data for each of rhe N points) and only M points in the list.

What can I do?
Is there any way to duplicate brunches (duplicate second set preserving branch ierarchy)???

Thanks All,

These are helpful.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service