0021472: EDF 2080 SMESH: Projection1D2D on a Voronoi structure fails

fix GetMediumPos() to return EDGE instead of FACE for 2 VERTEXes
This commit is contained in:
eap 2012-01-18 12:42:06 +00:00
parent fbae18cd7f
commit 6a9e9ab497

View File

@ -948,8 +948,8 @@ std::pair<int, TopAbs_ShapeEnum> 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
{