Grasshopper

algorithmic modeling for Rhino

Hello.

I need to control the distance between two or more circles in Grasshopper, so there always is the same distance between the circles.

So if I change the distance (slider) the circles move closer or further away from each other, they allways need to have the same distance between each other.

 

How can I solve this in Grasshopper?

Views: 748

Replies to This Discussion

Hi Marie,

Something like this (see attached) ?

Attachments:

Thank you very much. It is like that. But what if I want to placed them in for example in a triangle and not on a straight line?

It's as simple as joining the same value to a x and y vector component. I've attached the definition again.

Attachments:

Thank you very much!

Oops, sorry, I missread that post.

what you actually want to do is move the circles in the x and y direct proportionally so that all circles are equidistant right?

I've attached a corrected algorithm.

Attachments:

Yes, it looks good, it is something I can use.

Maybe you can help me with another question?

I have a city with buildings and I have found the volumes of the building. Now I want to show a difference between with colors, so the volumes over a given value have to by one color and the volume under a given value have to by a second color.

So I have made a “Split list”. But I don’t know how to make it to a geometry because the output is Volume, and how can it be a geometry and get it back in my system, so it can be showen as buildings?

Is this even possible to do like I am?

Use the dispatch component to dispatch the buildings according to their volume. then use the preview component on the output.

Sorry but I am just started a using this program. So I don’t know dispatch very well, I have just used one time. So when I am trying it gets red, and I don't know what to put in P?

There's two ways of doing this.

The first dispatches the result in two lists.

The second uses a domain include to create multiple lists (say volumes between 0 and 10 are a color, 11 to 20 are another color and so on.) To achieve this, just copy everything past the volume component and change the upper and lower values accordingly.

Thanks! It works now.

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