Need guidance in creating vortex field

I am getting familiar to grasshopper now and trying to achieve as shown in the reference image. However, I need support on two things:

  1. How to divide for example a Hexagon further into hexagonal grid?
  2. How to achieve this vortex effect? I tried using point attractor and moving the top points in x & y axis based on point attraction. However, I believe there would be a much better way to do this.

Thanks for help and guidance in advance.

P.S. I am attaching my script and reference image here.

Point Attractor Flower.gh (13.8 KB)


Hex_Field.gh (10.0 KB)

3 Likes

I really like how @Ali_Najmaei managed to achieve this using only native components, that’s a clean and elegant approach.

If you’re okay with using Weaverbird, here’s another way to approach it. Weaverbird just helps generate the hexagonal grid inside the main hexagon, the vortex effect itself comes from using an attractor point to control the rotation and flow.

HexagonalVortex.gh (14.1 KB)

4 Likes

Thank you @Ali_Najmaei Its the easiest and clean one could do.

Thank you @Mahdiyar for your guidance using weaverbird plugin.

Is there any way that we could achieve it using vector fields? I mean using vectors - like a magnetic field of vectors? or any tutorial that uses vector fields to create patterns @Mahdiyar @Ali_Najmaei

Yes you can, if you have the position of the shape you can get the vector of the field with evaluate field, then apply the transformation. I use that here.

and for reference, initial work is from Herschel Shapiro

And some script here, I use Vector Field and also a Scalar Field that is transformed to a Vector Field.

2 Likes

Hello Laurent. Thank you for sharing the work. Its really good. I tried to use spin force and point charge fields but I am unable to convert those into 3D fields like this. How can I improve its output?

Harschel Field (Point Charge & Spin Force).gh (25.8 KB)

Harschel Field (Image Sampler).gh (297.7 KB)

Hello

What have you as input parameters ? geometries ?

The output is quite clear.

But why using Field Line ? Do you want the field to align geometries or/and deform them ?

The vector Field you can use is there

A Vector Field allows you to have a vector at each point of space. Most of the time the vector change is continuous (no step change) but it isn’t mandatory.

I basically want to deform them based on field lines. Sorry I am new to this vector field thing like you did rain drops pattern or any field.