Vector Field Lines¶
Functionality¶
This node visualizes a Vector Field object by generating lines of that field. More precisely, given the point X and field VF, the node does the following:
takes original point X
Applies the field to it with small coefficient, to create a point X1 = X + K * VF(X)
Applies the field to X1 with small coefficient, to create a point X2 = X1 + K * VF(X1)
And so on, repeating some number of times.
And then the edges are created between these points. When the coefficient is small enough, and the number of iterations is big enough, such lines represent trajectories of material points, when they are moved by some force field.
Inputs¶
This node has the following inputs:
Field. The vector field to be visualized. This input is mandatory.
Vertices. The points at which to start drawing vector field lines. This input is mandatory.
Step. Vector field application coefficient. If Normalize parameter is checked, then this coefficient is divided by vector norm. The default value is 0.1.
Iterations. The number of iterations. The default value is 10.
Parameters¶
This node has the following parameters:
Normalize. If checked, then all edges of the generated lines will have the same length (defined by Steps input). Otherwise, length of segments will be proportional to vector norms. Checked by default.
Join. If checked, join all lines into single mesh object. Checked by default.
Output NumPy. Outputs NumPy arrays in stead of regular python lists. Improves performance
Outputs¶
Vertices. The vertices of generated lines.
Edges. The edges of generated lines.
Performance Notes¶
This node works faster when the vertices list are NumPy Arrays
Example of usage¶
Example of description:
Generator-> Line
Generator-> Plane
Number-> List Input
Fields-> RBF Vector Field
ADD: Number-> Scalar Math
Vector-> Vector Out
Vector-> Vector Polar Input
Matrix-> Matrix In
Viz-> Viewer Draw
Visualize some vector field:
Fields-> Attractor Field
Fields-> Vector Field Math
Spacial-> Vector P Field
Viz-> Viewer Draw