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

minor fix: don't change xyzv::eps permanently in smooth()
parent c74e8efe
No related branches found
No related tags found
No related merge requests found
// $Id: Views.cpp,v 1.137 2004-10-16 16:13:34 geuzaine Exp $ // $Id: Views.cpp,v 1.138 2004-10-20 05:46:47 geuzaine Exp $
// //
// Copyright (C) 1997-2004 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997-2004 C. Geuzaine, J.-F. Remacle
// //
...@@ -1212,6 +1212,7 @@ void smooth_list(List_T * list, int nbList, double *min, double *max, ...@@ -1212,6 +1212,7 @@ void smooth_list(List_T * list, int nbList, double *min, double *max,
void Post_View::smooth() void Post_View::smooth()
{ {
double old_eps = xyzv::eps;
xyzv::eps = CTX.lc * 1.e-8; xyzv::eps = CTX.lc * 1.e-8;
if(NbSL || NbST || NbSQ || NbSS || NbSH || NbSI || NbSY) { if(NbSL || NbST || NbSQ || NbSS || NbSH || NbSI || NbSY) {
...@@ -1233,6 +1234,8 @@ void Post_View::smooth() ...@@ -1233,6 +1234,8 @@ void Post_View::smooth()
smooth_list(SY, NbSY, &Min, &Max, NbTimeStep, 5, con); smooth_list(SY, NbSY, &Min, &Max, NbTimeStep, 5, con);
Changed = 1; Changed = 1;
} }
xyzv::eps = old_eps;
} }
// Transformation // Transformation
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment