Grasshopper

algorithmic modeling for Rhino

Hello all,

I'm pretty new to GH, and already have my mind fully twisted around a puzzle i've constructed for myself out of data trees.

My problem boils down to this:  I have two data trees:

TREE A            TREE B

{0} n=1          {0;1} n=4

{1} n=1          {0;4} n=4

{2} n=1          {1;1} n=4

                     {1;2} n=4

                     {1;3} n=4

                     {1;4} n=4

                     {2;1} n=2

                     {2;2} n=4

                     {2;3} n=4

                     {2;4} n=4

Both trees are generated from sliders, so could have any number of branches, although they are tied together.  Tree A is a set of division points on a line, Tree B is a set of intersections from lines generated radially from the first (in this case three) points.  I am trying to perform a "closest point" operation between the first tree and the second tree-- only, I do not want them to cross list, or long or short list.   I want the {0} point to operate with those entries in the 2nd tree that start with {0,x}.  So it would look like

{0}  -->   closest point with {0;1},{0;4}

{1}  -->   closest point with {1;1},{1,2},{1,3},{1,4}  etc

I cannot figure out how this works.   What I am visually trying to do is cast rays from a string of points so that they stop when they encounter another curve.  I am having trouble picking through the intersection events to get what I want.  Check the attached files for some clarity.  THANK YOU

Views: 678

Attachments:

Replies to This Discussion

PShift (Shift Paths) should help, the same can be done with Pathmapper btw.

Unless I misunderstood your question.

PS: Dont you want to use Isovist?

Hi Jorudan,

I hope that I understood it in the right way.

First I also thought like Systemiq but then I thought you mean it in an other way.

Just have a look at the attached there is a small difference in the result to Systemiq's version.

Hope this helps.

Best,

Martin.

Sry, I forgot to attach the files. ^^"

Attachments:

Martin is right, and here is Isovist version (to feel useful).

Attachments:

I think your Isovist Ray version is much smarter.

Hi and thank you for both solutions, exactly what I was looking for...  I was using the previous release of Grasshopper and unaware the isovist command even existed!

Either way your solutions were very helpful in getting me to understand the kinds of operations available on data trees, so thanks again.

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