]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
fix free edges for quadratic mesh
authoreap <eap@opencascade.com>
Thu, 9 Mar 2006 09:47:32 +0000 (09:47 +0000)
committereap <eap@opencascade.com>
Thu, 9 Mar 2006 09:47:32 +0000 (09:47 +0000)
src/Controls/SMESH_Controls.cxx

index 008c83dfb61e6b7303d5a8c469cca3da01a25f49..8d17a7ae0f8ed507a1700b458bd28f361b3eece8 100644 (file)
@@ -1601,7 +1601,12 @@ void FreeEdges::GetBoreders(TBorders& theBorders)
   for(; anIter->more(); ){
     const SMDS_MeshFace* anElem = anIter->next();
     long anElemId = anElem->GetID();
-    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[2];
     const SMDS_MeshElement* aNode;
     if(aNodesIter->more()){