[Grasshopper] How to convert a model into a collection of boxes [Data download available]

[Grasshopper]モデルからボックスの集合体に変換する方法[データも配布] grasshopper EN

In this article, we will learn how to convert a model into a collection of boxes in Grasshopper.


↑Youtube Channel

Video

The model before conversion

Before

The image above shows the model before conversion.

the collection of boxes after conversion

After

The image above shows a collection of boxes after conversion.

Due to the very large amount of components in this project, we will only explain the general programming flow.

So, if you want to know more, we recommend that you watch the video, the component images we place below, or download the data for review.

Click here to download the Grasshopper file

Please refer to the Terms of Use regarding the use of downloadable data.

Grasshopper recipe

①Brep ②Box ③Deconstruct Box ④Divide Domain ⑤Deconstruct Domain ⑥Subtraction ⑦Domain Box ⑧List Item ⑨Series ⑩Evaluate Box ⑪Deconstruct Plane ⑫Multiplication ⑬Move ⑭Volume ⑮Point In Brep ⑯Dispatch

Grasshopper recipe1
Click to zoom
Grasshopper recipe2
Click to zoom

General flow of programming

We will explain the general programming flow.

Box surrounding the model

First, we create a box that encloses the entire model.

Divided box

Then specify the number of divisions in 3 directions and get one small box divided.

Move

Then place the smaller boxes created, throughout.

Center point

Then get the center point of each box.

Case-by-case

Then only get boxes which center point is in the model.

Complete

This completes the process.

That’s all for this time.

Comment

Translate »