[Gmsh] Vector size
Christophe Geuzaine
geuzaine at acm.caltech.edu
Mon Jun 23 17:44:03 CEST 2003
Nicolas TARDIEU wrote:
>
> Hi!
>
> When you load a displacement field to visualize a deformed mesh, it
> seems to me
> that a "VECTOR SIZE=50" gives an amplification factor of 1.
>
> So.... Why "VECTOR SIZE=50" ??!?
>
Well, 50 is too simple, I agree. We should have chosen 42 :-)
More seriously, it's a hack we forgot to remove. We use the "vector
size" option to control the displacement factor as well. And since the
default vector size is 50 (pixels), we divide the displacement factor by
50 to get the "natural" displacement in the default case. Ahem.
I'll just add a separate parameter for the displacement factor in the
next release. Meanwhile, just replace
fact = View->ArrowScale / 50.;
with
fact = View->ArrowScale;
in Graphics/PostElement.cpp, line 813.
Christophe
--
Christophe A. Geuzaine
Applied and Computational Mathematics, Caltech
geuzaine at acm.caltech.edu - http://geuz.org