Accumulate Field Node
The Accumulate Field node counts a running total of its input values, in the order defined by the geometry's indices. The node's essential operation is just addition, but instead of only outputting the final total, it outputs the current value at every element.
Đầu Vào (Inputs)
- Value (Giá Trị)
The values to be accumulated.
Cảnh báo
When accumulating integer values, be careful to make sure that there are not too many large values. The maximum integer that Blender stores internally is around 2 billion. After that, values may wrap around and become negative. See wikipedia for more information.
- Chỉ Số Nhóm (Group Index)
An index used to group values together for multiple separate accumulations. This can be thought of as a choice of the "bin" in which to place each value. This input has no effect when it is only a single value.
Tính Chất (Properties)
- Kiểu dữ liệu (Data Type)
- Float
The node will accumulate a Float field.
- Số Nguyên (Integer)
The node will accumulate an Integer field.
- Véctơ (Vector)
The node will accumulate a Vector field.
- Phạm vi (Domain)
The attribute domain used for accumulation and for evaluation of the Value input. If the
Đầu Ra (Output)
- Tiền Dẫn (Leading)
The running total of values in the corresponding group, starting at the first value.
- Hậu Dẫn (Trailing)
The running total of values in the corresponding group, starting at zero.
- Tổng Cộng (Total)
The total of all of the values in the corresponding group
Một Số Ví Dụ (Examples)
Bàn/Bảng (Table)
Value (Giá Trị) |
Chỉ Số Nhóm (Group Index) |
Tiền Dẫn (Leading) |
Hậu Dẫn (Trailing) |
Tổng Cộng (Total) |
---|---|---|---|---|
1 |
7 |
1 |
0 |
6 |
3 |
7 |
4 |
1 |
6 |
2 |
7 |
6 |
4 |
6 |
1 |
3 |
1 |
0 |
3 |
0 |
3 |
1 |
1 |
3 |
2 |
3 |
3 |
1 |
3 |
A few examples of input values and the node's results. One important take-away from this table is that the specific values for the Group Input does not matter; it only matters that the values are shared between elements.
Xếp Chồng các Hộp Lên (Stacking Boxes)
Here, the node is used in combination with the Nút Giá Trị Ngẫu Nhiên (Random Value Node) node to create a stack of randomly scaled boxes. The Group Index input is not used, because all boxes are meant to be in the same stack.
A slightly more complicated version of the previous example, using the Group Index input to create three separate stacks.