GLVis / glvis

Lightweight OpenGL tool for accurate and flexible finite element visualization
http://glvis.org
BSD 3-Clause "New" or "Revised" License
263 stars 53 forks source link

Vector field options in 2D with single colored arrows above #278

Closed najlkin closed 5 months ago

najlkin commented 8 months ago

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: image option 5: image

najlkin commented 6 months ago

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.

v-dobrev commented 6 months ago

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. 😄

najlkin commented 6 months ago

@v-dobrev , fixed in #282 :wink: