[Grasshopper] How to use Split Brep to divide models between breps

[Grasshopper] How to use Split Brep to divide models between breps Grasshopper component EN

This article explains how to use Split Brep to divide models between breps.

Split Brep1
Split Brep2

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


↑Youtube Channel

For Brep models and surfaces

First, let’s look at the case where surfaces are used for Brep models.

For Brep models and surfaces

Components used: ① Rectangle ② Surface ③ Unit Z ④ Extrude ⑤ Division ⑥ Move ⑦ Split Brep

This time, we will use a cube Brep model and a square surface as examples.

正方形のサーフェス

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

This time, we entered 1000 in both fields.

Therefore, a 1000×1000 square line data set is created.

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

Then, a square surface was created.

立方体

Then, enter the value 1000 that was used earlier into Unit Z.

Then connect Unit Z to the Extrude(D).

Also, connect the Surface to the Extrude(B).

Then, as shown in the image above, the surface was extruded, creating a cube.

move the surface

Next, move the surface to the center.

Connect Unit Z to the Division(A).

Then, enter the value 2 into the Division(B).

Also, connect the Division to the Move(T).

Then connect the Surface to the Move(G).

Then, the square surface moves to the halfway point of the cube.

Brepモデルを分割

Next, connect the Extrude to the Split Brep(B).

Additionally, connect the Move(G) to the Split Brep(C).

Then, the cube is split at the surface position.

However, since both split models exist within the Split Brep, they cannot be selected individually.

obtain individually segmented models

Additional Component: ①List Item

Therefore, we use List Item and similar methods to obtain individually segmented models.

Looking at the Split Brep data, you can see there are two sets of data.

Therefore, we will prepare two List Item.

Then, connect the Split Brep to the two List Item(L).

After that, enter the value 0 into the first List Item(i) and the value 1 into the second one.

obtain the split models individually1
obtain the split models individually2

Then, as shown in the top two images, we were able to obtain the split models individually.

In the case of Brep models

Next, let’s look at the case of Brep models.

In the case of Brep models

This time, we extruded the surface from earlier to create another Brep model.

a new solid Brep model

Enter the numerical value for the distance to push in Unit Z.

This time, we are entering 200.

Then, connect Unit Z to the Extrude(D).

Also, connect the Move(G) to the Extrude(B).

Then, as shown in the image above, the surface was extruded, creating a new solid Brep model.

the cube is divided

Then, just like before, connect it to Split Brep.

Then, the cube is divided.

This time, there are three data points in Split Brep.

Split1
Split2
Split3

In this case, you can see that the overlapping parts of the two Breps used are also split.

Close the open model

Open Brep

When you split a model using Split Brep, the split model becomes an Open Brep and is in an open state.

Therefore, it may be necessary to close it in some cases.

Cap Holes

Additional Components: ①Cap Holes

閉じた

When the cut surface is two-dimensional, Cap Holes can often be used to close it.

when the cut surface is complex
when the cut surface is complex

On the other hand, when the cut surface is complex rather than two-dimensional, as shown in the image above, you must create the surface for that cut section separately and then join it.

Solid Intersection

Additional Components: ①Solid Intersection ②Brep Join

This time, as an example, we will use Solid Intersection to create the cutout section.

切り口部分

Connect the original model and the surface used for splitting to the Solid Intersection.

Then, we were able to obtain the surface of the overlapping section, the cut surface.

Join

Then, connect the original model andthe Solid Intersection to the Brep Join.

Then, we were able to join the original model with the cut section and close it.

List of Grasshopper articles using Split Brep component↓

Comment

Translate »