]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
22542: [CEA 1129]Convert to biquadradic creates a node ouside an element if mesh... V7_4_0a1
authoreap <eap@opencascade.com>
Thu, 3 Apr 2014 17:01:55 +0000 (21:01 +0400)
committereap <eap@opencascade.com>
Thu, 3 Apr 2014 17:01:55 +0000 (21:01 +0400)
  Fix quadratic->biquadratic w/o geometry

src/SMESH/SMESH_MesherHelper.cxx

index 6dda8f79b7aa0ac0fa817156a90de1fab38cee00..a53e644d88f612d30667acc92b14654c36b91f69 100644 (file)
@@ -1200,10 +1200,11 @@ const SMDS_MeshNode* SMESH_MesherHelper::GetCentralNode(const SMDS_MeshNode* n1,
   }
   else // ( force3d || F.IsNull() )
   {
-    P = ( SMESH_TNodeXYZ( n1 ) +
-          SMESH_TNodeXYZ( n2 ) +
-          SMESH_TNodeXYZ( n3 ) +
-          SMESH_TNodeXYZ( n4 ) ) / 4;
+    P = calcTFI (0.5, 0.5,
+                 SMESH_TNodeXYZ(n1),  SMESH_TNodeXYZ(n2),
+                 SMESH_TNodeXYZ(n3),  SMESH_TNodeXYZ(n4), 
+                 SMESH_TNodeXYZ(n12), SMESH_TNodeXYZ(n23),
+                 SMESH_TNodeXYZ(n34), SMESH_TNodeXYZ(n41));
     centralNode = meshDS->AddNode( P.X(), P.Y(), P.Z() );
 
     if ( !F.IsNull() ) // force3d