Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
dbdb0fc
)
Corrections for bug PAL12653.
author
skl
<skl@opencascade.com>
Tue, 25 Jul 2006 10:58:13 +0000
(10:58 +0000)
committer
skl
<skl@opencascade.com>
Tue, 25 Jul 2006 10:58:13 +0000
(10:58 +0000)
src/Controls/SMESH_Controls.cxx
patch
|
blob
|
history
diff --git
a/src/Controls/SMESH_Controls.cxx
b/src/Controls/SMESH_Controls.cxx
index 5559dddeccecd6e14593654a0f5ba0d1207fca85..a6ae0af999e649aeb3fc9404fd3049650bb85a19 100644
(file)
--- a/
src/Controls/SMESH_Controls.cxx
+++ b/
src/Controls/SMESH_Controls.cxx
@@
-520,7
+520,17
@@
double AspectRatio3D::GetValue( const TSequenceOfXYZ& P )
{
double aQuality = 0.0;
if(myCurrElement->IsPoly()) return aQuality;
+
int nbNodes = P.size();
+
+ if(myCurrElement->IsQuadratic()) {
+ if(nbNodes==10) nbNodes=4; // quadratic tetrahedron
+ else if(nbNodes==13) nbNodes=5; // quadratic pyramid
+ else if(nbNodes==15) nbNodes=6; // quadratic pentahedron
+ else if(nbNodes==20) nbNodes=8; // quadratic hexahedron
+ else return aQuality;
+ }
+
switch(nbNodes){
case 4:{
double aLen[6] = {