From c339bb8da76dd2980d6cc73aa61957a60665ab2a Mon Sep 17 00:00:00 2001 From: Amaury Johnen <amaury.johnen@uclouvain.be> Date: Thu, 16 Nov 2017 16:53:14 +0100 Subject: [PATCH] add HAVE_VISUDEV at forgotten places --- Common/Context.h | 2 ++ Common/Options.h | 2 ++ Plugin/AnalyseCurvedMesh.cpp | 4 ++-- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Common/Context.h b/Common/Context.h index 8b43003b95..e9121396c3 100644 --- a/Common/Context.h +++ b/Common/Context.h @@ -236,8 +236,10 @@ class CTX { int mouseSelection, mouseHoverMeshes, pickElements; // disable some warnings for expert users? int expertMode; +#if defined(HAVE_VISUDEV) // Enable heavy visualization capabilities (for development purpose) int heavyVisu; +#endif // dynamic: equal to 1 while gmsh is printing int printing; // hide all unselected entities? diff --git a/Common/Options.h b/Common/Options.h index 53a35ad8bb..12b9a3e5e2 100644 --- a/Common/Options.h +++ b/Common/Options.h @@ -285,7 +285,9 @@ double opt_general_zoom_factor(OPT_ARGS_NUM); double opt_general_expert_mode(OPT_ARGS_NUM); double opt_general_stereo_mode(OPT_ARGS_NUM); double opt_general_camera_mode(OPT_ARGS_NUM); +#if defined(HAVE_VISUDEV) double opt_general_heavy_visualization(OPT_ARGS_NUM); +#endif double opt_general_eye_sep_ratio(OPT_ARGS_NUM); double opt_general_focallength_ratio(OPT_ARGS_NUM); double opt_general_camera_aperture(OPT_ARGS_NUM); diff --git a/Plugin/AnalyseCurvedMesh.cpp b/Plugin/AnalyseCurvedMesh.cpp index 8c871743e7..cc33b71d99 100644 --- a/Plugin/AnalyseCurvedMesh.cpp +++ b/Plugin/AnalyseCurvedMesh.cpp @@ -35,7 +35,7 @@ StringXNumber CurvedMeshOptions_Number[] = { {GMSH_FULLRC, "Recompute", NULL, 0}, {GMSH_FULLRC, "Dimension of elements", NULL, -1} #if defined(HAVE_VISUDEV) - ,{GMSH_FULLRC, "Element to draw quality", NULL, -1} + ,{GMSH_FULLRC, "Element to draw quality", NULL, 0} #endif }; @@ -558,7 +558,7 @@ void GMSH_AnalyseCurvedMeshPlugin::_computePointwiseQuantities(MElement *el, if (!_viewOrder) { // _viewOrder = std::min(10, 2 * el->getPolynomialOrder()); - _viewOrder = 10; + _viewOrder = 9; } if (_pwJac) { -- GitLab