This article explains how to use Unit X to Obtain the X-Direction Vector.


On the Grasshopper, it is represented by either of the two above.
Obtaining a vector in the x-direction
Unit X can be used to obtain a vector in the x-direction.

First, let’s move the sphere object above in the X direction using Move and Unit X.

Components used: (1) Brep (2) Unit X ( 3 ) Move
Connect the Brep, where the sphere is set, to the Move(G).
Then, input the distance to be moved to the Unit X.
In this case, 50 is entered.
Then, connect the Unit X to the Move(T).

The sphere now moves 50 of the specified value in the X direction.

Components used: (1) YZ Plane ( 2 ) Rectangle (3) Unit X (4) Extrude
Now, let’s create a rectangle on the plane created by YZ Plane and push it out in the X direction.
Connect YZ Plane to Rectangle.
Enter the lengths of the sides into the Rectangle(X and Y).
In this case, we enter 20 for both.
Enter a numerical value for the distance to be extruded in Unit X.
In this case, 100 is entered.
Finally, connect the Rectangle to the Extrude(B) and Unit X to the Extrude(D).

A rectangle is now extruded in the X direction.
Thus, by using Unit X, we can obtain a vector in the x-direction.
List of Grasshopper articles using Unit X component↓
Comment