[Grasshopper] How to use Evaluate Box to obtain points and planes at specified positions in a box

[Grasshopper] How to use Evaluate Box to obtain points and planes at specified positions in a box Grasshopper component EN

This article explains how to use Evaluate Box to obtain points and planes at specified positions in a box.

Evaluate Box1
Evaluate Box2

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


↑Youtube Channel

Acquire points and planes at specified position of a box

Using the Evaluate Box allows you to obtain points and planes at specified position of a box.

box

For this example, we will use the box created in the Box shown in the image above.

Acquire points and planes at specified position of a box

Components used: ①Box ②Evaluate Box

This time, we are creating a box in Box.

Connect the Box to the Evaluate Box(B).

After that, the positions in the three directions U, V, and W are specified using values ranging from 0 to 1.

Connect the 0 to 1 values to the Evaluate Box(U, V, W).

This time, 0.5 is connected to all three.

point

Then, as shown in the image above, a point will appear inside the box.

In this case, since 0.5 is connected in three directions, points are created at the midpoints of these three directions.

change the value in the Evaluate Box(U)

For example, let’s change the value in the Evaluate Box(U) to 1.0.

the point moved to the end in the U direction

Then, the point moved to the end in the U direction.

By specifying the positions in three directions as values within the range 0 to 1, the points of the box at that location will be displayed.

Output data

Let’s take a look at the output data.

Output data

Additional Components: ①PlanePoint

The data for the plane at the acquired location is output from the Evaluate Box(Pl).

Point data for the acquired location is output from the Evaluate Box(Pt).

The Evaluate Box(I) outputs True if the point is inside the box and False if it is outside.

In the case of the image above, the point is inside the box, so it outputs True.

set the value of Evaluate Box(U) to 1.2

Let’s set the value of Evaluate Box(U) to 1.2, which is greater than 1.

Then, the Evaluate Box(I) changed to False.

the point is outside the box

In this case, as shown in the image above, the point is outside the box, so the Evaluate Box(I) outputs False.

List of Grasshopper articles using Evaluate Box component↓

Comment

Translate »