[Grasshopper] Ceiling design using magnetic fields [Data download available]

[Grasshopper]磁場を利用した天井デザインの作成方法[データも配布] grasshopper EN

This article describes how to design a ceiling using magnetic fields in Grasshopper.


↑Youtube Channel

Model Images

Model Image1
Model Image2
Model Image3
Model Image4
Model Image5

The top five images are from Grasshopper.

Model Image6
Model Image7
Model Image8
Model Image9
Model Image10

The top four images show the model exported on Rhinoceros.

rendering

The image above shows the final rendering.

Click here to download the Grasshopper file

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

Grasshopper recipe

①Construct Point ②Rectangle ③Populate 2D ④Spin Force ⑤Merge Fields ⑥Field Line ⑦Surface ⑧Project ⑨Divide Curve ⑩Interpolate ⑪Negative ⑫Unit Z ⑬Move ⑭Ruled Surface ⑮Offset Surface ⑯Brep Join

Grasshopper recipe1
Click to zoom
Grasshopper recipe2
Click to zoom
Grasshopper recipe3
Click to zoom
Grasshopper recipe4
Click to zoom
Grasshopper recipe5
Click to zoom
Grasshopper recipe6
Click to zoom

Create a magnetic field

First, we create a magnetic field.

Point

First, connect a height value to a Construct Point(Z).

This time, 5 is input.

Then a point is created at coordinates 0,0,5, as shown in the image above.

Rectangle

Then connect the Construct Point to a Rectangle(P).

Then, Connect side length values to Rectangle(X and Y).

This time, 10 for X and 5 for Y are connected.

Then a 10 x 5 square line is created, as shown in the image above.

Points

Then connect the Rectangle(R) to a Populate 2D(R).

Furthermore, connect a numerical value of the number of points to the Populate 2D(N).

This time, 4 is connected.

Furthermore, connect a seed value of any randomness to the Populate 2D(S).

This time, 1 is connected.

Then 4 points are created at random positions within the rectangle, as shown in the image above.

Magnetic field

Then connect the Populate 2D to a Spin Force (P).

Furthermore, connect a magnetic field radius value to the Spin Force (R).

Then four rotating magnetic fields are created, as shown in the image above.

Then connect the Spin Force to a Merge Fields.

Then the four magnetic fields are combined.

Create curves from the magnetic field

Next, we will create curves from the magnetic field

Random points

Connect the Rectangle(R) to a new Populate 2D(R).

Furthermore, connect a numerical value of the number of points to the Populate 2D(N).

This time, 28 is connected.

Furthermore, connect a seed value of any randomness to the Populate 2D(S).

This time, 5 is connected.

Then 28 points are created at random positions within the rectangle, as shown in the image above.

These points are the starting points of curves.

Lines

Then connect the Merge Fields to a Field Line(F).

Furthermore, connect the second Populate 2D to the Field Line(P).

Furthermore, connect the number of iterations to Field Line(N).

This time, 343 is input.

In addition, connect 1 to the Field Line(M).

Then lines is created from the starting points under the influence of the magnetic field, as shown in the image above.

This lines are currently not curves, but a series of straight lines joined together.

Surface

Then connect the Rectangle (R) to a Surface.

Then a surface is created from the lines of the rectangle, as shown in the image above.

Project

Then connect the Surface to a Project(B).

In addition, connect the Field Line to the Project(C).

Then the lines are projected on the surface, as shown in the image above.

Division

Then connect the Project to a Divide Curve(C).

Furthermore, connect the numerical value of the number of division points to the Divide Curve(N).

This time, 20 is connected.

Then divided points are created at the location where each line is divided into 20, as shown in the image above.

Curves

Then connect the Divide Curve(P) to an Interpolate(V).

Then curves connecting the divided points are created, as shown in the image above.

Curves

The curves are now created from continuous lines.

Create surfaces from the curves and add thickness

Finally, Create surfaces from the curves and add thickness.

Move

Connect the values for the distance to be moved to a Negative.

This time, 1 is connected.

Then the number -1 is output.

Then connect the Negative to a Move(T).

In addition, connect the Interpolate(C) to the Move(G).

Then the curves move downward, as in the image above.

Surface

Then Connect the Interpolate(C) and the Move(G) to a Ruled Surface.

Then surfaces are created connecting the curves, as shown in the image above.

Offset

Then connect the Ruled Surface to two Offset Surface(S).

Furthermore, connect the number to be offset to the first Offset Surface(D).

This time, 0.001 is connected.

For the second Offset Surface(D), connect 0.001 through a Negative.

This offsets the surface back and forth, as shown in the image above.

Connect surfaces

Then connect the two Offset Surface to a Ruled Surface.

Then surfaces are created connecting the two surfaces.

Join

Then connect the two Offset Surface and Ruled Surface to a Brep Join.

Then the surfaces are combined, as shown in the image above.

That’s all for this time.

Comment

Translate »