[Grasshopper] How to use Populate Geometry to create random points on and in geometry

[Grasshopper] How to use Populate Geometry to create random points on and in geometry Grasshopper component EN

This article explains how to use Populate Geometry to create random points on and in geometry.

Populate Geometry1
Populate Geometry2

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


↑Youtube Channel

Creating Random Points on and in Geometry

Populate Geometry allows you to create random points on and in geometry.

今回使用するモデル

We will first use this solid model on Rhino.

Creating Random Points on and in Geometry

Components used: ①Brep ②Populate Geometry

random points are created

The solid on Rhino is set in a Brep.

Then, connect the Prep to the Populate Geometry(G).

Enter the number of points to be generated in the Populate Geometry(N).

In this case, enter 100.

Input the seed value of the randomness to the Populate Geometry(S).

This time, 50 is input.

As an example, if we connect the Number Slider, which can be changed from 1~100, to the Populate Geometry(S), we can create 100 different patterns.

Then, as shown in the image above, random points are created on and in the model.

In this case, 100 points are randomly created.

N端子の数値を変える

We changed the value of the Populate Geometry(N) from 100 to 20.

the number of generated points is reduced

As you can see, the number of generated points is reduced.

S端子の数値を変える

Next, we changed the value of the Populate Geometry(S) from 50 to 24.

the randomness changed

As you can see, the randomness changed and the arrangement of the points changed.

In this way, the number of points and the randomness can be freely adjusted.

.

Various types of models

Populate Geometry can be used with various types of models.

Various types of models

Various types of models are available.

The types include solids (polysurfaces), surfaces, lines, meshes, and SubD.

Components used
Click to Zoom

Components used: (1) Brep (2) Surface (3) Curve (4) Mesh (5) Populate Geometry

Let’s connect all of them to Populate Geometry.

Populate Geometry could be used with various types

As you can see, Populate Geometry could be used with various types of models.

In the case of this three-dimensional solid, polysurface, mesh, SunD, etc., you can see that points are created on and in the model.

In the case of a 2D surface, a point is created on the surface.

In the case of a line, a point is created on the line.

P

Specifying an existing point in the Populate Geometry(P) will prevent new points from being placed around that point.

P
Click to Zoom

Components used: (1) Brep (2) Deconstruct Brep (3) Divide Curve (4) Color (5) Custom Preview (6) Populate Geometry

This time, we will create and connect the points that divide the cube’s border at equal intervals to the Populate Geometry(P).

Deconstruct Brep

First, connect Brep to Deconstruct Brep.

Then, the cube is decomposed and the border is obtained from the Deconstruct Brep(E).

Then, connect the Construct Brep(E) to the Divide Curve(C).

Then, input the number of line divisions to the Deconstruct Brep(N).

Since 20 is entered this time, create a point at the position where the line is equally divided into 20.

Flatten
Click to Zoom

At this point, right click on the Divide Curve(P) and set it to Flatten.

Also, this time, to make it easier to see, we used Colour and Custom Preview to make these points light blue.

prevents new points from being placed around the point

Then, connect the Divide Curve(P) to the Populate Geometry(P).

This time, the number of points at the Populate Geometry(N) is set to 1000.

This prevents new points from being placed around the point at the border position.

when the P is not specified

This is how the points are generated when the P is not specified.

zoom

If you zoom in, you can see that points are generated near the border when the P is not specified.

If points on the border are specified

If points on the border are specified for the P, you can see that a point is no longer created near the cube’s border.

increase the number of points
Click to Zoom

Let’s increase the number of points in the Populate Geometry(N) from 1000 to 3000 and increase the density of points.

The higher the density of points, the closer the points are to the border

The higher the density of points, the closer the points are to the border, even when the P is specified.

List of Grasshopper articles using Populate Geometry component↓

Comment

Translate »