Grasshopper

algorithmic modeling for Rhino

(SOS) How to compare the smallest value out of 3 value sources

Hey Guys,
I have a small problem. I have a situation were i have  3 sources to compare.. i was able to compare 2 of them and dispatch the lines  (smallest).. I am a bit confused in comparing all three together.. can any one tell me how to proceed..
Thank You

Views: 784

Replies to This Discussion

i find that you can use the mix to your advantage. for instance lets say you have a tree that has 40 path and n=1 object and a list that has 3 objects in it. i know that if i use the two together that the list will operate on each object in the branch. so if the tree is points and the list is points and i use the distance node i know that the 3 list points will evaluate agenst each tree point giving me a distance that is 40 paths with n=3 distance values in each path.

so basically all objects in a list will evaluate on each object in the tree.

with that said if the tree looks like {0;1;1;} which i will refer to as {A;B;C}where you have data in two ore more locations of each branch the list will evaluate on each set of the branch so in my previous example the 3 points in my list will eval on all objects in B and all objects in C.

i do not understand fully why grasshopper uses "trees" and not something more conventional like a jagged array object[][] or a multi-dimensional array object[ , , ]. it is an easier and more document concept to understand.
That's the thing. The mix can be an advantage, but it may really be a WIP glitch...

As things are set-up now trees will always override the data matching toggles (shortest, longest, cross-reference). That can be very confusing...

I would say the mix is bad practice since when things are cleaned up for GH v0.7 it probably shouldn't work.

Trees as arrays would be easier for scripters and programmers to understand, but I think David is going for something more visually user friendly (for people who aren't already scripters and programmers).

I hope he'll comment on this discussion. Otherwise I might annoy him until he does...
really, you think that in .7 a list will not eval on a tree. yes your right that the tree/list mix override the data replication options but in a predictable manner.

also is a list just a 1 branch tree. 1 path with n=x objects. i guess doing a lot of programing i do not like how list data has to get duplicated to use a tree, it just is foreign to my way of thinking.
Well, no, I'm just wildly speculating.

Lists came first (0.5 and earlier) and then trees were added (0.6) so everything to date (so far) is just one big experiment...

I think David is re-thinking data matching and trees so that everything is coherent. I remembered these comments (not that they're very extensive):

http://www.grasshopper3d.com/forum/topics/management-of-lists?comme...

Mostly I'm just curious since the mix makes it hard to explain to others how things are working without fully understanding both.
Hey Guys,
I am facing 1 more Problem. I have a surface, which i subdivided in certain no. or polyline plots.. I have 3 reference points (eg. A, B, C). I find which Plot centre points is close to A, B, and C.. Now I want to extrude the polylines and i am not able to understand how do i link this (closest point) data while extruding.. I was able to extrude it according to the distances from A, B, C to plot centre points, but i want to extrude the points closer to A by say 5 metres, closer to B by 10 and closer to C by 15..

Can any one help me out with this..


Thank you
Attachments:
hey guys,
can any one solve the problem stated above .. taz i used ur method as well.. but i am stuck in the extruding part.. pls help..


thank u
tushar,

try this out
Attachments:
hey robert,
thanks for ur reply..but when i plugged in points, it extruded the connected lines..
thank u

hey robert, i got it.. thanks a lot, i attached the polylines in the extrude.. i should have checked it before posting the reply.. sorry for that..
can i ask one more thing, do u know how do i extrude with respect to the plot area.. for example, i have my polylines as plots, and then i check the area, which is my built up area, and then i can extude no. of floors..and how do i set the height of each floors.. i mean its the traditional rules which we follow.. how could i do tht using grasshopper..

thanks a lot
hi robert,
i tried this in my definition and couldnt manage to get it. can u hava look at it..
thank u
Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service