Grasshopper

algorithmic modeling for Rhino

hi guys,

my problem is that i accuately don't know how to start. i tried a lot of possible solutions but in the end i can't get it all together.

1. i have a square grid of points
(2. the points should produce squares)
3. i want do deform the grid by an attractor, the outline/size of the grid should be fixed just the cells should change the size
3. in the end i want to select some cells, so that i can continue working


can anybody help me?

!! thank you !!

Views: 8121

Replies to This Discussion

Instead of thinking of it as a point grid, think about it as lines.... see attached, i set it up with a graph mapper, but you could wire it to an attractor point too.

as for selecting individual cells, that'll take a little more work.
Attachments:
The approach I would take would be this:

1. Make a rectangular/square surface.
2. Divide the surface into points to produce the grid of points.
3. Cull out the edge points (since you dont want your edges to change) using simple rules (the points you would cull would be the first row, the last row, and first and last point in each column.. this is not too difficult to set up). Lets call this list CulledPts.
4. Define your attractor objects, measure distances and define vectors from each of the CulledPts to the attractor.
5. Use a graph mapper to establish a relationship between the distance & displacement, and multiply the output values to the vectors created in step 4.
6. Use these vectors to move the points in CulledPts.
7. Create your square grid from these points. This is just a little bit of clever use of two series components used in conjuction.
thank you very much for your help!
i didn't know that it so easy to create a square grid from points...ok i used 4 series instead of 2, but hey!
in the end i took elements of both ideas.

but the problems will not stop...
as you can see in the picture below it works fine with an attractor point on the one side of the grid but it gets crazzy on the other side...i don't know why because the order of the points is the same... and the lines they create look fine too...


anybody knows why?
thank you
Attachments:
You might also might consider playing with JellyFish...
i solved the problem.
thanks for your help!
Do share the solution on the forum if you dont mind. It will be helpful for everybody.
Thanks.
Hey Boris,

Did you upload your final version somewhere? I have a similar problem that I'm trying to solve... without success so far. It would be really great if you could help me out.

Thank you so much.

Best regards,
Stefan
i'm sorry for the late answer, i hope it is not to late...

i changed my interests a little bit. so i have a solution for this problem:


you just need to set the base point (red highlighted)...

i hope i could help
boris
Attachments:
Hallo Boris,

ich nehme an, du sprichst deutsch... ;)

Vielen Dank für deine Antwort. Ich habe auch bereits auf der web-page mein Problem online gestellt.

Ich denke, mein Problem geht in eine ähnliche Richtung. Vielleicht könntest du kurz einen Blick darauf werfen?

http://www.grasshopper3d.com/forum/topics/deforming-points-grid

Was ich versuche zu erreichen ist eine Hexagon-Rasterstruktur innerhalb eines Rechteckes, bei dem man den Abstand zwischen den vertikalen und horizontalen Elementen verändern kann.

Hast du irgendeine Idee, wie man das erreichen kann? Ich komme hier einfach nicht weiter.


Tausend Dank für deine Hilfe.

Liebe Grüße
Stefan

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service