Variable Voronoi Study

by Tuğrul Yazar | November 30, 2012 11:02

I’ve been searching for a method to study the Voronoi subdivision in order to manipulate it. There are well-known algorithms for that. But I thought it would be better if I use a projective approach just as I did in studying hyperbolic space (here[1]). This is the metaphor of inflating balloons. However, I inflated cones instead of spheres. This way, it became possible to modify the algorithm. So I was able to develop a kind of variable Voronoi study here. Of course, it is not a real Voronoi because the edges are not straight.

variable voronoi study

Above is the regular Voronoi subdivision in 5 steps, with constantly and equally inflating points. As a result, the code is very simple and easy to use. It is a good educational experiment on the usage of projections and intersections in native Grasshopper.

Grasshopper definition 1[2]Download[3]
variable voronoi study

The second attempt (above) shows an interpretation of the variable Voronoi study. Again I inflated points at variable distances. Curved edges are because of different cone heights. You can study linear edges by manipulating those heights to be the same.

Grasshopper definition 2[4]Download[5]

And finally, I tried to put attractor curves, in addition to points in this algorithm. Thus I put spheres instead of cones. Look what happened;

variable voronoi study

Straight edges and variable effect from each point. Here is the working Rhino 5 Grasshopper file from 2012. This code still works in 2021. Because it was made by using the native Grasshopper components. This makes the code more durable, simple, and educational.

Grasshopper definition 3[6]Download[7]

Here[8] is a link that inspired me to this study. This post could be further improved by studying various components and sweeping objects along curves.

Endnotes:
  1. here: https://www.designcoding.net/hyperbolic-projection-of-a-semi-regular-tessellation/
  2. Grasshopper definition 1: https://www.designcoding.net/decoder/wp-content/uploads/2012/11/2012_11_29-voronoim1.ghx
  3. Download: https://www.designcoding.net/decoder/wp-content/uploads/2012/11/2012_11_29-voronoim1.ghx
  4. Grasshopper definition 2: https://www.designcoding.net/decoder/wp-content/uploads/2012/11/2012_11_29-voronoim2.ghx
  5. Download: https://www.designcoding.net/decoder/wp-content/uploads/2012/11/2012_11_29-voronoim2.ghx
  6. Grasshopper definition 3: https://www.designcoding.net/decoder/wp-content/uploads/2012/11/2012_11_29-voronoim3.ghx
  7. Download: https://www.designcoding.net/decoder/wp-content/uploads/2012/11/2012_11_29-voronoim3.ghx
  8. Here: http://www.codeproject.com/Articles/411242/Create-a-Voronoi-diagram-1-of-2

Source URL: https://www.designcoding.net/variable-voronoi-study/