Apply Vector Field¶
Functionality¶
This node applies the Vector Field to provided points. More precisely, given the vector field VF (which is a function from points to vectors) and a point X, it calculates new point as X + K * VF(X).
This node can also apply the field iteratively, by calculating X + K*VF(X) + K*VF(X + K*VF(X)) + …. In other words, it can apply the field to the result of the first application, and repeat that several times.
Inputs¶
This node has the following inputs:
Field. The vector field to be applied. This input is mandatory.
Vertices. The points to which the field is to be applied. The default value is (0, 0, 0).
Coefficient. The vector field application coefficient. The default value is 1.0.
Iterations. Number of vector field application iterations. For example, 2 will mean that the node returns the result of field application to the result of first application. The default value is 1.
Parameters¶
Output NumPy. Outputs NumPy arrays in stead of regular python lists. Improves performance
Outputs¶
This node has the following output:
Vertices. The result of the vector field application to the original points.
Performance Notes¶
This node works faster when the vertices list are NumPy arrays
Examples of usage¶
Example of Description:
Generator-> Segment
Fields-> Rotation Field
Modifiers->Modifier Make-> UV Connection
Number-> A Number
SUB: Number-> Scalar Math
Number-> Float to Integer
Number-> Number Range
Logic-> Logic Functions
Logic-> Switch
Matrix-> Matrix In
List->List Struct-> List Item
Viz-> Viewer Draw
Viz-> Viewer Index+
Apply noise vector field to the points of straight line segment:
Generator-> Segment
Fields-> Noise Vector Field
Viz-> Viewer Draw
Apply the same field to the same points, by only by a small amount; then apply the same field to the resulting points, and repeat that 10 times:
Generator-> Segment
Fields-> Noise Vector Field
Number-> Number Range
Viz-> Viewer Draw