Grasshopper

algorithmic modeling for Rhino

Hi everyone,

first and foremost thank you (yes you!) for the information you share in this forum, it is extremely helpful!.

 

I'd like your help with my final project :) (interior design and built environment 4th and final year).

 

I have a working code in which I create extruded stripes based on a curve (see included files)

 

Now I want to have an attractor point (or more, but I'll start with one) that controls the height of the lines that I created from the initial points (in the z direction), but the division has to stay the same (I don't want to get "broken" stripes). and the effect needs to be smooth.

 

Now the code i have right now for this, works only on the original points of the base curve (see included files) and is not smooth at all. I need the attractor to effect all of the points created after the devision.so that if I move the attractor point on the "grid" of points I have ,after the devision, the lines near it will become longer, thus creating larger openings between the stripes. I tried various ways, but have failed so far.

 

sorry for the long description and thank you so much!

 

p.s. the graph mapper is not necessary if I am able to do what I want, so you can just get rid of it :)

Views: 2243

Attachments:

Replies to This Discussion

I'm new to this forum, so if there is something I haven't explained clearly please tell me. this is quite urgent.... thanks in advance.

You might find better results if you move the point with a vector rather than flattening the list.

 

PS Bank holiday in the UK yesterday so it might have been missed for that reason. I don't think it's personal.

Thank for your reply :)
I have kind of a noob question- I see that you added a z vector, but the second component (the one with the arrow) what is it called?
we have different versions of grasshopper,and I can't seem to find it....

Thank you!

The component is Move (Transform>Euclidean>Move)

We probably don't have different versions. You will find that on the view menu there are a couple of options to Draw Icons and Fancy Wires. Also you can choose for each component on the canvas to either display its textual name or icon or use the application settings.

 

Fancy wires are a must if you want to easily see the structure of your data flow. Single lines = single items, single branch. Double Lines = Multiple Items on a single branch. Double Dashed lines = Multiple items, multiple branches.

Thanks, it does work, but I wanted the lines themselves to extend.

What happens right now is the points move on the line and make the stripes thinner near the attractor. i would like the stripes to remain more or less the same thickness but the distance between the points on each line (the z direction lines), to get bigger when the attractor is close to them (as a result of the lines themselves becoming longer).

Do you have any ideas on how to do this?

I'll look at this tomorrow, but I didn't alter your methodology, just the way that it was achieved.

You were decomposing the points and adding a dZ value to them and then rebuilding.

x' = x, y' = y and z' = z + dz

 

I've just moved the points by the same dZ value. x' = x, y' = y, z' = z + dz

You are right about that. I think that I missed it in the description, but my method wasn't getting the effect I wanted- which is the prolonging of the lines. It was just the best looking example out of all my tries.

good night and thanks, talk to you tomorrow.

is this what you had in mind?

 

Attachments:
we have different versions I cant see the connections (and most of the components). Can you show me an image?

sorry for the inconvenience, thanks.

What version are you running and why?

I have a question regarding your code. What is the integer in the list item component?

0

This is the first item in the list ie the point that lies on the base curve. You'll see that the base curve is not modified because it is scaled from itself so has nowhere to go.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service