Grasshopper

algorithmic modeling for Rhino

Hey Guys,
I have a problem in understanding how i can relate results to the points.. i have 3 extruded results (Situation) and i have to relate the 3 points to the results so that when the points go closer to the circular area, the situation adapts to the moving points.. The situation is also a result of certain attractor points results.. Its to manipulate the 3 design results to may be point 1 (rectangular grid option), Points 2 (triangular grid option) and point 3 (voronoi grid option).
Can anyone help me out with it..

Thank u

Views: 774

Replies to This Discussion

Hi Tushar,

I'm not sure I've grasped your "situation" properly, but I think you're after the Stream Filter Component found in the tree section. With this you can plug multiple inputs in and chose only 1 out. The example below has 3 points that dictate which hatch pattern is displayed based on the shortest distance.

Hey danny,
Situation is 3 urban plan options.. of u check in this video http://www.grasshopper3d.com/video/parametric-urbanism , there are urban plan options .. this circle is to just denote the attractor area which is seen on right hand side bottom of the video, and the points are different strategies (solutions).. i have 3 complete solutions done, which i want to operate with these points .. if point one gets in the circle, solution one takes its place .. if i get point one and 2 both, the solution 2 and 3 takes place..

thank u
Something along these lines:
You could use the containment component in v0.7 or create a cylinder and use the inclusion component in v0.6 and plug your solutions into the filter.

Attachments:
Thank u Danny..
I will try that out..
Thank u for ur help.
Hey Danny,
What 'i' value have u put in list item.. can u send me the definition
I'd assume the i value = 0 to chose the first item, the one that corresponds with the shortest distance (after the sort). Closest Point (from a point collection) could do the same thing allowing you to omit the Series, Distance, Sort, and List Item and just use the Index return as the Gate Filter 'G'

I would guess that it's also more efficient to use a mathematical comparison than a geometric one for proximity (ie distance rather than geometric inclusion/containment)
Attachments:
In version 0.7 by default the list Item is 0, so I only stick a panel on it if it's needed.
Hi Tushar,

...problem solved?
hey guys,
i tried the solutions today.. problem not solved.
well when i tried danny's option, it gives me an alert on filter component..and when i tried trevor's option which was quite clear, and gave me true value, it doesnt show the curves related to the point within the distance.. can any one tell me where am i wrong?
thanks a lot guys
Attachments:
Hi Tushar,

In jpeg 1 the input is 3 which is not an option for the stream filter 0-2
hey danny,
i really didnt understand whats wrong.. input as in series input?
The list item that you are supplying the filter with has a value of 3 but the filter is expecting either 0, 1 or 2. Don't pass the sorted A values through a list length component as this will only supply one value = 3. Just go direct from Sort A to list item L. I obviously had an error in the version I posted above, sorry, look to the original to see the correct sequence.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service