[Grasshopper] How to use Voronoi to create voronoi lines on a plane

[Grasshopper] How to use Voronoi to create voronoi lines on a plane Grasshopper component EN

This article explains how to use Voronoi to create voronoi lines on a plane.

Voronoi1
Voronoi2

On the Grasshopper, it is represented by either of the two above.


↑Youtube Channel

Create voronoi lines on a plane

Using Voronoi, you can create voronoi lines on a plane.

To create a 3D Voronoi diagram, use Voronoi 3D.

In that case, please refer to the article above.

multiple points

This time, we will use the multiple points in the image above to create a planar Voronoi diagram.

The Populate 2D component is useful for randomly creating multiple points.

Create voronoi lines on a plane

Components used: ①Point ②XY Plane ③Voronoi

For Voronoi(P), connect multiple points that serve as the reference for each Voronoi cell.

This time, we are connecting multiple point data set in Point.

Connect the data for the plane that creates the Voronoi to Voronoi(Pl).

This time, we are using the XY Plane, creating a plane formed by the X and Y directions.

Voronoi lines are created

Then, as shown in the image above, Voronoi lines are created.

polygon line data

When specifying the Voronoi domain, use polygon line data.

Rectangle

Additional Component: ① Rectangle

Connect the line data of the quadrilateral to Voronoi(B).

This time, we’re connecting 5000 to the Rectangle (X and Y) to create and connect a 5000×5000 rectangular line data set.

the Voronoi now fits within the specified rectangle

Then, as shown in the image above, the Voronoi now fits within the specified rectangle.

the Voronoi radius

In Voronoi(R), you can specify the Voronoi radius.

example1

The image above shows an example with a radius set to 200.

example2

The image above shows an example with a radius set to 300.

example3

The image above shows an example with a radius set to 400.

In this way, you can also specify the Voronoi radius.

surface

Additional Components: ① Surface

The data output from Voronoi consists of the closed lines for each cell.

Therefore, by connecting it to Surface, you can also surface it.

the result

The image above shows the result.

List of Grasshopper articles using Voronoi component↓

Comment

Translate »