From c5f9115cd99884e18309e05832d0be29efb22921 Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 9 Mar 2006 09:47:32 +0000 Subject: [PATCH] fix free edges for quadratic mesh --- src/Controls/SMESH_Controls.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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()){ -- 2.39.2