From 71e5158db48fa9d91d22c0d20a3a8796352efc1c Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 18 May 2011 12:29:40 +0000 Subject: [PATCH] 0021263]: EDF 1868: Several use cases fail (regressions) use SMESH_MesherHelper::IthVertex() instead of TopExp::FirstVertex() --- src/StdMeshers/StdMeshers_FaceSide.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 -- 2.39.2