Skip to content
Snippets Groups Projects
Commit c6affe0c authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

little hack to visualize overlapping multi-patch spheres with constant
offsets (use timeStep<0...)
parent 615a2d30
No related branches found
No related tags found
No related merge requests found
// $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 // Copyright (C) 1997-2004 C. Geuzaine, J.-F. Remacle
// //
...@@ -101,7 +101,7 @@ static void sphericalRaiseList(Post_View * v, List_T * list, int nbElm, ...@@ -101,7 +101,7 @@ static void sphericalRaiseList(Post_View * v, List_T * list, int nbElm,
if(!nbElm) if(!nbElm)
return; return;
if(timeStep < 0 || timeStep > v->NbTimeStep - 1){ if(timeStep > v->NbTimeStep - 1){
Msg(GERROR, "Invalid TimeStep (%d) in View[%d]", timeStep, v->Index); Msg(GERROR, "Invalid TimeStep (%d) in View[%d]", timeStep, v->Index);
return; return;
} }
...@@ -126,7 +126,10 @@ static void sphericalRaiseList(Post_View * v, List_T * list, int nbElm, ...@@ -126,7 +126,10 @@ static void sphericalRaiseList(Post_View * v, List_T * list, int nbElm,
d[1] = y[j] - center[1]; d[1] = y[j] - center[1];
d[2] = z[j] - center[2]; d[2] = z[j] - center[2];
norme(d); 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]; x[j] += coef * d[0];
y[j] += coef * d[1]; y[j] += coef * d[1];
z[j] += coef * d[2]; z[j] += coef * d[2];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment