Vector field options in 2D with single colored arrows above#278
Vector field options in 2D with single colored arrows above#278
Conversation
…nction and in a single color.
| double vy, double cval) | ||
| { | ||
| double zc = 0.5*(bb.z[0]+bb.z[1]); | ||
| double zc = (drawvector > 3)?(bb.z[1]):(0.5*(bb.z[0]+bb.z[1])); |
There was a problem hiding this comment.
Instead of additional options for v, maybe it is better to add an input option lambda (by default 0.5) that can adjust the zc value to (1-lambda)*bb.z[0]+ lambda*bb.z[1]?
This is similar to how we handle e.g. level lines with F5 or rules positions with ~
There was a problem hiding this comment.
I do not know, I do not see much reason for an arbitrary position, I see only a reason for mid-plane and above. The second thing is that color. The other options (except the first one) use color coding, so the arrows are almost invisible (blended) when looking from above.
|
I changed the color of the arrows to gray as in 3D. Btw, mesh becomes also gray in 3D, which I do not know if it is a bug or feature 😅 and if we want to replicate that here. |
Sounds like a bug to me. 😄 |
This PR adds two options for visualization of vector fields. They are similar to the options 2 and 3, but the arrows are drawn above the function surface and in a single color (gray as the options 4 and 5 in 3D) instead of the placement on the mid-plane with colors encoding the values. The main purpose is visualization of 2D data, where the current options for visualization of vector fields draw arrows, which are partially hidden behind the surface and the arrows blend with the background when looking from top.
example 5:


option 4:
option 5: