From: eap Date: Wed, 18 Jan 2012 12:42:06 +0000 (+0000) Subject: 0021472: EDF 2080 SMESH: Projection1D2D on a Voronoi structure fails X-Git-Tag: V6_5_0a1~196 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6a9e9ab49724957e2496c454e6c0c5d7f8ebcd98;p=modules%2Fsmesh.git 0021472: EDF 2080 SMESH: Projection1D2D on a Voronoi structure fails fix GetMediumPos() to return EDGE instead of FACE for 2 VERTEXes --- diff --git a/src/SMESH/SMESH_MesherHelper.cxx b/src/SMESH/SMESH_MesherHelper.cxx index 43943b31f..47854cf6e 100644 --- a/src/SMESH/SMESH_MesherHelper.cxx +++ b/src/SMESH/SMESH_MesherHelper.cxx @@ -948,8 +948,8 @@ std::pair SMESH_MesherHelper::GetMediumPos(const SMDS_Mes { TopoDS_Shape V1 = GetSubShapeByNode( n1, GetMeshDS() ); TopoDS_Shape V2 = GetSubShapeByNode( n2, GetMeshDS() ); - shape = GetCommonAncestor( V1, V2, *myMesh, TopAbs_FACE ); - if ( shape.IsNull() ) shape = GetCommonAncestor( V1, V2, *myMesh, TopAbs_EDGE ); + shape = GetCommonAncestor( V1, V2, *myMesh, TopAbs_EDGE ); + if ( shape.IsNull() ) shape = GetCommonAncestor( V1, V2, *myMesh, TopAbs_FACE ); } else // VERTEX and EDGE {