From 1a07647e08a7d33fb14ec40f97c4938fbe5c655f Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Wed, 9 Mar 2005 08:07:04 +0000
Subject: [PATCH] change sign of levelset so that the iso-volume is more
 natural

---
 Plugin/CutMap.cpp           | 10 +++++-----
 doc/texinfo/opt_plugin.texi |  4 ++--
 doc/texinfo/opt_view.texi   |  2 +-
 3 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/Plugin/CutMap.cpp b/Plugin/CutMap.cpp
index 04e1840ed3..0de8662971 100644
--- a/Plugin/CutMap.cpp
+++ b/Plugin/CutMap.cpp
@@ -1,4 +1,4 @@
-// $Id: CutMap.cpp,v 1.48 2005-01-08 20:15:18 geuzaine Exp $
+// $Id: CutMap.cpp,v 1.49 2005-03-09 08:07:04 geuzaine Exp $
 //
 // Copyright (C) 1997-2005 C. Geuzaine, J.-F. Remacle
 //
@@ -122,8 +122,8 @@ void GMSH_CutMapPlugin::getInfos(char *author, char *copyright,
 	 "corresponding time step in `dView'. If `dView'\n"
 	 "< 0, the plugin uses `iView' as the value source.\n"
 	 "If `ExtractVolume' is nonzero, the plugin\n" 
-	 "extracts the isovolume with values smaller (if\n"
-	 "`ExtractVolume' > 0) or greater (if `ExtractVolume'\n"
+	 "extracts the isovolume with values greater (if\n"
+	 "`ExtractVolume' > 0) or smaller (if `ExtractVolume'\n"
 	 "< 0) than the isosurface `A'.\n"
 	 "\n"
 	 "Plugin(CutMap) creates as many views as there\n"
@@ -147,10 +147,10 @@ void GMSH_CutMapPlugin::catchErrorMessage(char *errorMessage) const
 
 double GMSH_CutMapPlugin::levelset(double x, double y, double z, double val) const
 {
-  // we must look into the map for A - Map(x,y,z)
+  // we must look into the map for Map(x,y,z) - A
   // this is the case when the map is the same as the view,
   // the result is the extraction of isovalue A
-  return CutMapOptions_Number[0].def - val;
+  return val - CutMapOptions_Number[0].def;
 }
 
 Post_View *GMSH_CutMapPlugin::execute(Post_View * v)
diff --git a/doc/texinfo/opt_plugin.texi b/doc/texinfo/opt_plugin.texi
index 9e6237b765..8e6f85c133 100644
--- a/doc/texinfo/opt_plugin.texi
+++ b/doc/texinfo/opt_plugin.texi
@@ -104,8 +104,8 @@ plugin uses, for each time step in `iView', the
 corresponding time step in `dView'. If `dView'
 < 0, the plugin uses `iView' as the value source.
 If `ExtractVolume' is nonzero, the plugin
-extracts the isovolume with values smaller (if
-`ExtractVolume' > 0) or greater (if `ExtractVolume'
+extracts the isovolume with values greater (if
+`ExtractVolume' > 0) or smaller (if `ExtractVolume'
 < 0) than the isosurface `A'.
 
 Plugin(CutMap) creates as many views as there
diff --git a/doc/texinfo/opt_view.texi b/doc/texinfo/opt_view.texi
index db490edcad..344b519da1 100644
--- a/doc/texinfo/opt_view.texi
+++ b/doc/texinfo/opt_view.texi
@@ -80,7 +80,7 @@ Default value: @code{1}@*
 Saved in: @code{General.OptionsFileName}
 
 @item View.Boundary
-Draw the `N minus b'-dimensional boundary of the simplex (N=simplex dimension, b=option value)@*
+Draw the `N minus b'-dimensional boundary of the element (N=element dimension, b=option value)@*
 Default value: @code{0}@*
 Saved in: @code{General.OptionsFileName}
 
-- 
GitLab