[Grasshopper] How to use Explode Tree to break down branches

[Grasshopper] How to use Explode Tree to break down branches Grasshopper component EN

This article explains how to use Explode Tree to break down branches.

Explode Tree1
Explode Tree2

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


↑Youtube Channel

Break down branches

Using the Explode Tree allows you to break down branches.

Break down branches

Components used: ① Rectangle ② Surface ③ Divide Surface ④ Polyline

This time, we’ll use six line data points divided into six branches as an example for explanation.

square

Enter the numerical value for the length of one side into the Rectangle(X and Y).

This time, since 1000 was entered, a square line data set of 1000×1000 was created.

converted to surface

Next, connect the Rectangle(R) to the Surface.

Then, the line data was converted to surface data.

点データ

Then connect the Surface to the Divide Surface(S).

Additionally, enter the number of divisions into the Divide Surface(U and V).

Since 5 is entered for both this time, points will be created at positions that divide the surface into 5×5 sections.

lines were created

Next, connect the Divide Surface to the PolyLine(V).

Then, six lines were created by connecting the points.

branch data

Let’s take a look at the PolyLine branch data.

Then, we can see that there is one line data point in each of the six branches {0;0;0} to {0;0;5}.

connect the PolyLine to the Explode Tree

Additional Components: ①Explode Tree

Let’s connect the PolyLine to the Explode Tree.

However, an error occurs because the number of branch data in PolyLine differs from the number of terminals on the right side of the Explode Tree.

Match outputs

In that case, right-click the Explode Tree and select “Match outputs”.

+ icon

Alternatively, click the + icon displayed when zoomed in to add terminals equal to the number of branch levels.

the error disappeared

Then, since the number of levels in PolyLine and the number of terminals on the right side of the Explode Tree became the same, the error disappeared.

right-hand terminal

Additional Components: ①Curve

Let’s examine the data output from the right-hand terminal of the Explode Tree.

This time, we’ll look at the {0;0;0} terminal.

the branches have been decomposed

Then, only one line is obtained like this.

In this way, the branches have been decomposed, and we are able to obtain data consisting solely of {0;0;0}.

multiple data points exist within a single branch

Additional Component: ① Divide Curve

Let’s also consider cases where multiple data points exist within a single branch.

線を分割

Connect the PolyLine to the Divide Curve(C).

Enter the number of line segments into the Divide Curve(N).

Since you entered 2 this time, a point will be created at the position where the line splits into two.

within a single branch, there are multiple data points

Then, within a single branch, there are multiple data points.

In this case, three points are contained within a single branch.

to the Explode Tree

Let’s connect the Divide Curve(P) to the Explode Tree.

This time, we’ll look at the data in the {0;0;0;0} branch.

only the three points within {0;0;0;0} were obtained

Then, only the three points within {0;0;0;0} were obtained.

List of Grasshopper articles using Explode Tree component↓

Comment

Translate »