Hello! I want to make a Voronoi diagram out of a leaf boundary that I have. I would like to make it like this diagram here with the main veins being boundaries for the Voronoi cells.
Yes, I’ve read the page but I have a problem with making the Voronoi fit into the leaf boundary because it makes it bound by a rectangle instead. Any idea on how to make the leaf be the boundary?
the standard Voronoi Component computes Voronoi diagrams only with rectangular bounds, but that doesn’t mean you can’t trim out the portion of graph you are not interested into
when the autor references to nested Voronoi diagrams, he means he create a separate Voronoi diagrams for each half-leaf to create the veins first, then inside each of those cell he creates new ones
for instance, given half a leaf, you populate it with some points (which I believe are hand placed, not random) like this, and create a first Voronoi:
the output of the Voronoi Component is closed polylines, so you can easily intersect those with your original half-leaf silhouette to get the final cells, and create Boundary Surfaces out of them:
then you populate each of those surfaces again with points (this time I believe they are random), and the amount of points might be a function of the area of each Surface, like the following, on which you create again new voronois:
so I thought of creating some squares over each point of “voronoi_layer_0” to identify some areas to populate with points that will be used in “voronoi_layer_1”, but there are some straight lines that I don’t fully understand where they come from…
[edit] nevermind looks like it actually “understands” on its own which point of generation i+1 is inside which cell of generation i, so it doesn’t want branches, but just flat lists of points!
That’s a great tool, thank you for sharing! Also, do you know if it is possible to increase the thickness of the major veins so that it resembles the leaf better?
I’ve tried using the Scale function to increase the thickness of the veins (right side). However, it is not uniform. What parameter could I use to make the veins’ thickness be uniform?
Also, I’m having trouble with using the Voronoi Groups component for this scaled Voronoi (generation 1). Do you think it is still possible to use Voronoi Groups for this scaled version? If not, how would you change the nested Voronoi definition to include scaled Voronoi cells for generation 1 veins?
scaling different sized things by the same factor is not a good approach if you are looking for uniform results, I would go for Offset
as the first generation of Cells defines the overall look of your veins, I would opt for hand-picked points for G1, then I would just populate the whole geomery with random points for G2
I think lineweighting the areas by nested group might be the best way to achieve that effect. Depends on what the end goal is here, but if it’s more for visuals then that will be straightforward and look great.