I’m trying create an effect with a group of panels where I can move points to generate a gradient of different panel sizes. I have experimented with point charges as shown below (this is an image from the attached script).
Currently the gradient is very rough when I move the points over the surface and I’m wondering if point charges were a bad choice for the effect I’m trying to create. Also, currently I’m having to add components to my code for each new point charge I add. Basically I’m moving the center points of panels due to the field generated of a point charge and then moving them again for the field from another point charge (see below). Then I’m using the normalized distances from the original points to the translated points to determine the size of each panel.
I think what I’ve done kind of works, but I’m hoping someone has a better solution or suggestions as I’m a little stuck.DiscreteGradient.gh (28.1 KB)