mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-15 10:08:34 +05:00
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:
parent
fbae18cd7f
commit
6a9e9ab497
@ -948,8 +948,8 @@ std::pair<int, TopAbs_ShapeEnum> SMESH_MesherHelper::GetMediumPos(const SMDS_Mes
|
|||||||
{
|
{
|
||||||
TopoDS_Shape V1 = GetSubShapeByNode( n1, GetMeshDS() );
|
TopoDS_Shape V1 = GetSubShapeByNode( n1, GetMeshDS() );
|
||||||
TopoDS_Shape V2 = GetSubShapeByNode( n2, GetMeshDS() );
|
TopoDS_Shape V2 = GetSubShapeByNode( n2, GetMeshDS() );
|
||||||
shape = GetCommonAncestor( V1, V2, *myMesh, TopAbs_FACE );
|
shape = GetCommonAncestor( V1, V2, *myMesh, TopAbs_EDGE );
|
||||||
if ( shape.IsNull() ) shape = GetCommonAncestor( V1, V2, *myMesh, TopAbs_EDGE );
|
if ( shape.IsNull() ) shape = GetCommonAncestor( V1, V2, *myMesh, TopAbs_FACE );
|
||||||
}
|
}
|
||||||
else // VERTEX and EDGE
|
else // VERTEX and EDGE
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user