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

The image above shows the model before conversion.
the collection of boxes after conversion

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


General flow of programming
We will explain the general programming flow.

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

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

Then place the smaller boxes created, throughout.

Then get the center point of each box.

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

This completes the process.
That’s all for this time.
Comment