[Grasshopper] How to use Polygon to create polygonal lines

[Grasshopper] How to use Polygon to create polygonal lines Grasshopper component EN

This section explains how to use the Polygon component.

Polygon1
Polygon2

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


↑Youtube Channel

Creating polygonal lines

Polygon can be used to create polygonal lines.

Creating polygonal lines

The Polygon(P) connects the coordinates, points, and planes of the location where you want to create the polygon.

In the Polygon(R), enter the radius of the polygon inscribed in the circle.

In the Polygon(S), enter the number of angles of the polygon.

The Polygon(Rf) allows you to enter a numerical value for how rounded the corners should be.

Changing the number of corners

Changing the number of corners

By changing the number of corners, various polygons can be created.

First, set the number of the Polygon(S) to 5 to create a pentagon.

pentagon

Then, a pentagon like this was created.

4

Next, set the Polygon(S) to 4 to create a rectangle.

quadrangle

As a result, we have created a quadrangle like this.

7

Let’s increase the value a little and create a 7-sided rectangle.

7-sided rectangle

As a result, a 7-sided rectangle like this was created.

As you can see, you can create any number of polygons by changing the numerical value of the Polygon(S).

Rounding the corners

角を丸くする

You can round the corners of a polygon by setting the numerical value of the Polygon(Rf).

Initially, set the value to 50.

rounded

The corners are now rounded as shown here.

20

Now we decrease the value and set it to 20.

sharper

Now the corners are a little sharper.

Extracting the length of a polygon

Extracting the length of a polygon

The Polygon(L) outputs a numerical value for the total length of all sides.

List of Grasshopper articles using Polygon component↓

Comment

Translate »