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
Tags:
Sry, I forgot to attach the files. ^^"
Martin is right, and here is Isovist version (to feel useful).
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.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by