From: eap Date: Thu, 9 Mar 2006 09:47:32 +0000 (+0000) Subject: fix free edges for quadratic mesh X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c5f9115cd99884e18309e05832d0be29efb22921;p=modules%2Fsmesh.git fix free edges for quadratic mesh --- diff --git a/src/Controls/SMESH_Controls.cxx b/src/Controls/SMESH_Controls.cxx index 008c83dfb..8d17a7ae0 100644 --- a/src/Controls/SMESH_Controls.cxx +++ b/src/Controls/SMESH_Controls.cxx @@ -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(anElem)-> + interlacedNodesElemIterator(); + else + aNodesIter = anElem->nodesIterator(); long aNodeId[2]; const SMDS_MeshElement* aNode; if(aNodesIter->more()){