Commit 0e0e2f2f authored by Philippe Pebay's avatar Philippe Pebay
Browse files

PERF: minor perf improvement.

parent ca537058
......@@ -38,7 +38,7 @@
#include "verdict.h"
vtkCxxRevisionMacro(vtkMeshQuality,"1.51");
vtkCxxRevisionMacro(vtkMeshQuality,"1.52");
vtkStandardNewMacro(vtkMeshQuality);
typedef double (*CellQualityType)( vtkCell* );
......@@ -660,7 +660,7 @@ int vtkMeshQuality::RequestData(
}
Eqtri += q;
Eqtri2 += q * q;
ntri++;
++ ntri;
break;
case VTK_QUAD:
q = QuadQuality( cell );
......@@ -678,7 +678,7 @@ int vtkMeshQuality::RequestData(
}
Eqqua += q;
Eqqua2 += q * q;
nqua++;
++ nqua;
break;
case VTK_TETRA:
q = TetQuality( cell );
......@@ -696,7 +696,7 @@ int vtkMeshQuality::RequestData(
}
Eqtet += q;
Eqtet2 += q * q;
ntet++;
++ ntet;
if ( this->Volume )
{
V = TetVolume( cell );
......@@ -722,7 +722,7 @@ int vtkMeshQuality::RequestData(
}
Eqhex += q;
Eqhex2 += q * q;
nhex++;
++ nhex;
break;
default:
q = 0.;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment