Attribute Vector Math

Modify an attribute with a math operation.

../../../_images/modeling_geometry-nodes_attribute_attribute-vector-math_node.png

The Attribute Vector Math Node.

Входы

Geometry (геометрия)

Стандартный вход геометрии.

A, B, C

The inputs to the math operations. Depending on the operation one, two, or all three of the inputs will be used. The attribute types are all vectors of three values, except for the Scale operation, where the second input uses a float type.

Result (результат)

The name of the attribute where the computed result it stored. A new attribute with that name is added if it does not exist yet. If it does exist, the values of the existing attribute are overridden.

Свойства

Операция

The math function to perform.

Add

The sum of A and B.

Subtract

The difference between A and B.

Multiply

The entrywise product of A and B. \((A.x * B.x, A.y * B.y, A.z * B.z)\)

Divide (деление)

The entrywise division of A by B. Division by zero results in zero. \((A.x / B.x, A.y / B.y, A.z / B.z)\)

Cross Product

The cross product of A and B.

Project

Проекция A на B.

Reflect (отражение)

Отражение A вокруг нормали B. B не нужно нормализовать.

Refract (преломление)

For a given incident vector A, surface normal B and ratio of indices of refraction (IOR) refract outputs the refraction vector R.

Faceforward

Ориентирует вектор A так, чтобы он указывал от поверхности B, как определено его нормалью C. Вычисляется \((dot(B, C) < 0) ? A : -A\).

Dot Product

The dot product of A and B.

Distance (расстояние)

Расстояние между А и В.

Length

The length of A.

Scale (масштаб)

The result of multiplying A by the scalar input Scale.

Нормализовать

The result of normalizing A.

Wrap

Wrap.

Snap

Результат округления A до наибольшего целого числа, кратного B, меньшего или равного A.

Floor

The entrywise floor of A.

Ceil

The entrywise ceiling of A.

Modulo

The entrywise modulo of A by B.

Fraction

The fractional part of A.

Absolute

The entrywise absolute value of A.

Minimum (минимум)

The entrywise minimum from A and B.

Maximum (максимум)

The entrywise maximum from A and B.

Sine

The entrywise Sine of A.

Cosine

The entrywise Cosine of A.

Tangent

The entrywise Tangent of A.

Примечание

Attributes are converted implicitly to the input data type.

A, B, C
Attribute

A text field to input an attribute name.

Vector

The input is a vector of three float numbers.

Output (выход)

Geometry (геометрия)

Стандартный выход геометрии.

Пример

Here are nodes to move points along the normals of a mesh or points from the Point Distribute node. First the normal attribute is moved to the Point domain. Then it is normalized, the length is changed, and it is added to the position. The Factor input could instead be an attribute to vary the displacement per point.

../../../_images/modeling_geometry-nodes_attribute_attribute-vector-math_example.png