Nút So Sánh (Compare Node)

Compare Node.

The Compare node takes two inputs and does an operation to determine whether they are similar. The node can work on all generic data types, and has modes for vectors that contain more complex comparisons, which can help to reduce the number of necessary nodes, and make a node tree more readable.

Đầu Vào (Inputs)

A, B

Tiêu chuẩn giá trị đầu vào của thể loại lựa chọn.

C

Compared against the dot product of two input vectors in when the Mode property is set to Dot Product.

Giảm Chấn Epsilon (Epsilon)

This value is used as a threshold for still considering the two inputs as equal for the Equal and Not Equal operations.

Tính Chất (Properties)

Chế Độ (Mode)
Theo Phần Tử (Element-Wise)

Compare each axis of the input vectors separately, and output true only when the result is true for each axis.

Chiều Dài (Length)

So sánh chiều dài của hai véctơ đầu vào.

Trung Bình (Average)

Compare the average of the elements of the input vectors. This is the same as the implicit conversion used when setting the node's data type to Float.

Tích Vô Hướng (Dot Product)

Compare the dot product of the two vectors with the separate C input, using the selected operation. The dot product outputs a single value that says how much the two vectors "agree".

Chiều Hướng (Direction)

Compare the angle between the two vectors with the separate Angle input, using the selected operation. The vectors are normalized, so their length does not matter.

Thao Tác (Operation)
Nhỏ Hơn (Less Than)

True when the first input is smaller than second input.

Nhỏ Hơn hoặc Bằng Nhau (Less Than or Equal)

True when the first input is smaller than the second input or equal.

Lớn Hơn (Greater Than)

True when the first input is greater than the second input.

Lớn Hơn hoặc Bằng Nhau (Greater Than or Equal)

True when the first input is greater than the second input or equal.

Bằng Nhau (Equal)

True when both the difference between the two inputs is smaller than the Epsilon input.

Không Bằng Nhau (Not Equal)

True when both the difference between the two inputs is larger than the Epsilon input.

Sáng/Nhạt Hơn (Brighter)

True when the first color input is brighter than the second.

Tối/Sẫm Hơn (Darker)

True when the first color input is darker than the second.

Đầu Ra (Output)

Kết Quả (Result)

Standard Boolean output.

Một Số Ví Dụ (Examples)

../../../_images/modeling_geometry-nodes_utilities_compare_direction.png

Here, the compare node is used with the Direction mode to compare the direction of the sphere's face normals to the "direction" of the cube object's location. Anywhere that the directions are less than 32.9 degrees apart, the faces will be selected, and deleted.