Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Christian Butz
VTK
Commits
0e0e2f2f
Commit
0e0e2f2f
authored
Feb 22, 2008
by
Philippe Pebay
Browse files
PERF: minor perf improvement.
parent
ca537058
Changes
1
Hide whitespace changes
Inline
Side-by-side
Graphics/vtkMeshQuality.cxx
View file @
0e0e2f2f
...
...
@@ -38,7 +38,7 @@
#include
"verdict.h"
vtkCxxRevisionMacro
(
vtkMeshQuality
,
"1.5
1
"
);
vtkCxxRevisionMacro
(
vtkMeshQuality
,
"1.5
2
"
);
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.
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment