]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
fix MultiConnection2D for quardratic faces
authoreap <eap@opencascade.com>
Fri, 10 Mar 2006 12:58:05 +0000 (12:58 +0000)
committereap <eap@opencascade.com>
Fri, 10 Mar 2006 12:58:05 +0000 (12:58 +0000)
src/Controls/SMESH_Controls.cxx

index 8d17a7ae0f8ed507a1700b458bd28f361b3eece8..c00cbae43554bcf0c5ea8f40f2d46537bad8eed7 100644 (file)
@@ -1378,7 +1378,12 @@ void MultiConnection2D::GetValues(MValues& theValues){
   SMDS_FaceIteratorPtr anIter = myMesh->facesIterator();
   for(; anIter->more(); ){
     const SMDS_MeshFace* anElem = anIter->next();
-    SMDS_ElemIteratorPtr aNodesIter = anElem->nodesIterator();
+    SMDS_ElemIteratorPtr aNodesIter;
+    if ( anElem->IsQuadratic() )
+      aNodesIter = static_cast<const SMDS_QuadraticFaceOfNodes*>
+        (anElem)->interlacedNodesElemIterator();
+    else
+      aNodesIter = anElem->nodesIterator();
     long aNodeId[3];
 
     //int aNbConnects=0;