Skip to content
Snippets Groups Projects
Commit 1d24bfdc authored by Jean-François Remacle's avatar Jean-François Remacle
Browse files

*** empty log message ***

parent bcec2430
No related branches found
No related tags found
No related merge requests found
// $Id: LevelsetPlugin.cpp,v 1.13 2001-08-09 18:28:24 remacle Exp $ // $Id: LevelsetPlugin.cpp,v 1.14 2001-08-09 21:15:30 remacle Exp $
#include "LevelsetPlugin.h" #include "LevelsetPlugin.h"
#include "List.h" #include "List.h"
...@@ -69,6 +69,7 @@ Post_View *GMSH_LevelsetPlugin::execute (Post_View *v) ...@@ -69,6 +69,7 @@ Post_View *GMSH_LevelsetPlugin::execute (Post_View *v)
nx++; nx++;
} }
} }
/*
if(nx == 4) if(nx == 4)
{ {
double xx = Xp[3]; double xx = Xp[3];
...@@ -84,7 +85,7 @@ Post_View *GMSH_LevelsetPlugin::execute (Post_View *v) ...@@ -84,7 +85,7 @@ Post_View *GMSH_LevelsetPlugin::execute (Post_View *v)
Zp[2] = zz; Zp[2] = zz;
myVals[2] = vv; myVals[2] = vv;
} }
*/
double v1[3] = {Xp[2]-Xp[0],Yp[2]-Yp[0],Zp[2]-Zp[0]}; double v1[3] = {Xp[2]-Xp[0],Yp[2]-Yp[0],Zp[2]-Zp[0]};
double v2[3] = {Xp[1]-Xp[0],Yp[1]-Yp[0],Zp[1]-Zp[0]}; double v2[3] = {Xp[1]-Xp[0],Yp[1]-Yp[0],Zp[1]-Zp[0]};
double gr[3]; double gr[3];
...@@ -106,6 +107,7 @@ Post_View *GMSH_LevelsetPlugin::execute (Post_View *v) ...@@ -106,6 +107,7 @@ Post_View *GMSH_LevelsetPlugin::execute (Post_View *v)
Zp[k] = Zpi[nx-k-1]; Zp[k] = Zpi[nx-k-1];
} }
} }
if(nx == 3 || nx == 4) if(nx == 3 || nx == 4)
{ {
for(k=0;k<3;k++)List_Add(View->ST, &Xp[k]); for(k=0;k<3;k++)List_Add(View->ST, &Xp[k]);
......
...@@ -45,3 +45,4 @@ View[0].SmoothNormals = 1; ...@@ -45,3 +45,4 @@ View[0].SmoothNormals = 1;
View[1].IntervalsType = 2; View[1].IntervalsType = 2;
View[2].IntervalsType = 2; View[2].IntervalsType = 2;
Draw;
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment