[Gmsh] Centered arrows

Christophe Geuzaine cgeuzaine at ulg.ac.be
Fri Aug 31 08:57:39 CEST 2007

Bas Michielsen wrote:
> Hello,
> Thank you for working on Gmsh, I am very happy with this tool. 
> I have a remark on the visualisation of vector fields, though.
> The postprocessor shows arrows with the stem starting from the 
> vertex (the point in which the vector field is evaluated). In my
> applications this sometimes gives a false impression of dissymmetry. 
> I therefore would prefer to have arrows centered on the vertices 
> and slipped in the following lines 
>   x -= 0.5*dx;
>   y -= 0.5*dy;
>   z -= 0.5*dz;
> at the start of Draw_SimpleVector and Draw_3DArrow in Graphics/Entity.cpp.  
> Would it be an idea to make this arrow centering a View option ?

Hi Bas - good idea: we'll add this in the next release.

> Best regards, 
> Bas

Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science