Grid Deformation using Attractor Point

Hello again everybody,

I’m trying to manipulate a grid, changing the cell’s dimensions dipending by the distance between an attraction point and all the points which belongs to the grid.

Does anyone have any suggestion?

Thanks,
V

Hi,

Something like this?

2021-05-07 21-05-51.2021-05-07 21_07_14

grid_attractor.gh (8.2 KB)

Kinda of. What I want to achieve is a grid anyway. (every line should be connected)
so I don’t want to go and change the cell size without taking care of the grid. I want to vary the cell taking with it the size of the cell (the line).
Maybe an image can be much more explanatory
image

this is on the very same leitmotiv @diff-arch has shown, using vectors to move grid points instead of scaling the geometries


grid_attractor_Re.gh (13.6 KB)
[be careful bending space-time]

2 Likes

You see that’s why you should always attach a sketch, diagram, or reference photo, so that there are no misunderstandings.

Well … this appears “easy” … but is not (if you want to never “overtake” the attractor(s) (case: pull) or to control the distortion Topology properly (case: push)).

Rather impossible to do it without code. See 2 simple 3d grid examples with 2 attractors (could be any number) in push/pull mode. If on the other hand you are quite familiar with C# (or you want to be) notify for an entry level demo case.

if its a flat 2d grid you’re after download the plugin Parakeet off food4rhino and in the example folder open up Metamorphosis.gh

Nice! I added edge damping (white group):

grid_attractor_2021May10a.gh (19.7 KB)

And with a Graph Mapper to avoid the linear fall-off:

grid_attractor_2021May10b.gh (21.2 KB)

1 Like

Have a try Pinch’n’Spread Points of pufferfish plugin

Just tried this, but dont get me what I wanna, but kinda it.

I created my grid using a Mesh (uv count), then I have set a step (from mesh to surface) to generate a grid in which import a pattern (red part on theh canvas) in each cell.
In this case I have:

  • n° of points that belongs to the initial Mesh (quadratic grid);
  • n° of points that belongs to the new grid with pattern (rhombus)

I used the first step of points, the ones that belongs to the initial mesh, because it is precisely that mesh that generates the next step, but the problem, as you all can see on the 2nd picture, is that the initial grid is transformed, but the rhombus (the pattern) doesnt follow the transformation.

Improtant: the surface generate at the ending is not flat.

Any suggestions??