From: eap Date: Wed, 18 May 2011 12:29:40 +0000 (+0000) Subject: 0021263]: EDF 1868: Several use cases fail (regressions) X-Git-Tag: V6_3_0b2~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=71e5158db48fa9d91d22c0d20a3a8796352efc1c;p=modules%2Fsmesh.git 0021263]: EDF 1868: Several use cases fail (regressions) use SMESH_MesherHelper::IthVertex() instead of TopExp::FirstVertex() --- diff --git a/src/StdMeshers/StdMeshers_FaceSide.cxx b/src/StdMeshers/StdMeshers_FaceSide.cxx index 1103a6071..58faf25a8 100644 --- a/src/StdMeshers/StdMeshers_FaceSide.cxx +++ b/src/StdMeshers/StdMeshers_FaceSide.cxx @@ -242,9 +242,8 @@ const vector& StdMeshers_FaceSide::GetUVPtStruct(bool isXConst, { // Put 1st vertex node of a current edge TopoDS_Vertex VV[2]; // TopExp::FirstVertex() returns NULL for INTERNAL edge - for ( TopoDS_Iterator vIt(myEdge[i]); vIt.More(); vIt.Next() ) - VV[ VV[0].IsNull() ? 0 : 1 ] = TopoDS::Vertex(vIt.Value()); - if ( VV[0].Orientation() == TopAbs_REVERSED ) std::swap ( VV[0], VV[1] ); + VV[0] = SMESH_MesherHelper::IthVertex( 0, myEdge[i]); + VV[1] = SMESH_MesherHelper::IthVertex( 1, myEdge[i]); const SMDS_MeshNode* node = SMESH_Algo::VertexNode( VV[0], meshDS ); double prevNormPar = ( i == 0 ? 0 : myNormPar[ i-1 ]); // normalized param if ( node ) { // internal nodes may be missing