[Grasshopper] How to use Line to create a straight line

[Grasshopper] How to use Line to create a straight line Grasshopper component EN

This article explains how to use Line to create a straight line.

Line1
Line2

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


↑Youtube Channel

Creating a line connecting points

Using Line, you can create a line connecting points.

Creating a single line from two points

two points

The first step is to create a line from two points.

Creating a single line from two points

Basically, connect the point where one point is set in each of the Line(A and B).

In this case, we connect the points set in Point.

A line is then created

A line is then created connecting the two points.

Creating multiple lines from multiple points

multiple points

Multiple lines can also be created from multiple points.

In this case, we will use these multiple points.

複数の点から複数の線を作成する

The first data is the bottom line and the second data is the top line.

Connect each of the point data, where multiple points are set, to the Line(A and B).

multiple lines

As you can see, multiple lines have been created.

Graft

Right-click on one Point or the Line(A) and select “Graft”.

set to Graft

Then it was set to Graft.

a line connecting all the points in the other line

With one Graft, one point can create a line connecting all the points in the other line, as shown here.

one point in one line

Let’s try to make one point in one line.

on Grasshopper

Thus, one Point contains only one point.

The other Point contains multiple points.

one Point connects to all the remaining Points

In this case, one Point connects to all the remaining Points.

Setting Point Data Directly into Line

Set one Point

Point data can also be set directly in Line.

First, we will set one point each at the Line(A and B).

First, right-click on the Line(A and B) and select “Set one Point”.

click on the location where you want to create a point

This will switch to the screen on Rhinoceros, so click on the location where you want to create a point.

do the same for the Line(B)

Then, do the same for the Line(B), and create a point.

line is created

The line is now created as shown here.

Set Multiple Points

Multiple points can also be set directly.

Right-click on the Line(A) and select “Set Multiple Points”.

select the location where you want to create points

On the rhinoceros, select the location where you want to create points.

In this case, we placed multiple points vertically as shown here.

B端子でも同じことをする

Do the same for the Line(B).

multiple lines were created

Then, multiple lines were created in this way as well.

Managing Points

Manage Point collection

Points can be managed with Line.

Right-click on the Line(A or B) and select Manage Point collection.

window

A window like this will then open.

Add Item

First, select Add Item.

bring up a screen

This will bring up a screen with new coordinates to edit.

coordinates

In the upper right corner, you can set the numerical value of the coordinates.

In this case, we set the coordinates to 100,100,0.

Now you can set a point at coordinates 100,100,0.

coordinates2

Another set of coordinates is also set at the other terminal.

Here, we set the coordinates to 200,200,0.

A line will be created

A line will then be created connecting the points at the coordinates you set.

Delete Selection

You can also delete a set point.

With the coordinates of the point you want to delete selected, select Delete Selection.

deleted

Then, the point could be deleted as shown here.

List of Grasshopper articles using Line component↓

Comment

Translate »