From 5665e4e05d3c13722d2755bb6e6439c6381ebc90 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Wed, 5 Sep 2001 11:24:06 +0000 Subject: [PATCH] *** empty log message *** --- Plugin/LevelsetPlugin.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Plugin/LevelsetPlugin.cpp b/Plugin/LevelsetPlugin.cpp index 4ab3ed7237..7abd4d12ac 100644 --- a/Plugin/LevelsetPlugin.cpp +++ b/Plugin/LevelsetPlugin.cpp @@ -1,4 +1,4 @@ -// $Id: LevelsetPlugin.cpp,v 1.19 2001-08-13 06:59:52 geuzaine Exp $ +// $Id: LevelsetPlugin.cpp,v 1.20 2001-09-05 11:24:06 geuzaine Exp $ #include "LevelsetPlugin.h" #include "List.h" @@ -154,9 +154,13 @@ double GMSH_LevelsetPlugin::what_to_draw (double x, double y, double z, int p1, int p2, double coef, double *Vals) const { + // This very dangerous, since there is no test to check if enough + // values are avaiable in the view int offset = _ith_field_to_draw_on_the_iso * 4; + // TEST JF, this would draw y coord on the iso // return y; + p2 += offset; p1 += offset; return coef * (Vals[p2] - Vals[p1]) + Vals[p1]; -- GitLab