From c6affe0cbd87a3fd572167c1087ee674443dc290 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Wed, 21 Jul 2004 18:18:23 +0000
Subject: [PATCH] little hack to visualize overlapping multi-patch spheres with
 constant offsets (use timeStep<0...)

---
 Plugin/SphericalRaise.cpp | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/Plugin/SphericalRaise.cpp b/Plugin/SphericalRaise.cpp
index 9d4f054f69..40f3675acf 100644
--- a/Plugin/SphericalRaise.cpp
+++ b/Plugin/SphericalRaise.cpp
@@ -1,4 +1,4 @@
-// $Id: SphericalRaise.cpp,v 1.18 2004-07-05 15:20:06 geuzaine Exp $
+// $Id: SphericalRaise.cpp,v 1.19 2004-07-21 18:18:23 geuzaine Exp $
 //
 // Copyright (C) 1997-2004 C. Geuzaine, J.-F. Remacle
 //
@@ -101,7 +101,7 @@ static void sphericalRaiseList(Post_View * v, List_T * list, int nbElm,
   if(!nbElm)
     return;
 
-  if(timeStep < 0 || timeStep > v->NbTimeStep - 1){
+  if(timeStep > v->NbTimeStep - 1){
     Msg(GERROR, "Invalid TimeStep (%d) in View[%d]", timeStep, v->Index);
     return;
   }
@@ -126,7 +126,10 @@ static void sphericalRaiseList(Post_View * v, List_T * list, int nbElm,
       d[1] = y[j] - center[1];
       d[2] = z[j] - center[2];
       norme(d);
-      coef = raise * val[nbNod * timeStep + j];
+      if(timeStep < 0)
+	coef = raise;
+      else
+	coef = raise * val[nbNod * timeStep + j];
       x[j] += coef * d[0];
       y[j] += coef * d[1];
       z[j] += coef * d[2];
-- 
GitLab