From 6a9e9ab49724957e2496c454e6c0c5d7f8ebcd98 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 18 Jan 2012 12:42:06 +0000 Subject: [PATCH] 0021472: EDF 2080 SMESH: Projection1D2D on a Voronoi structure fails fix GetMediumPos() to return EDGE instead of FACE for 2 VERTEXes --- src/SMESH/SMESH_MesherHelper.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 { -- 2.39.2