Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbae18c
)
0021472: EDF 2080 SMESH: Projection1D2D on a Voronoi structure fails
author
eap
<eap@opencascade.com>
Wed, 18 Jan 2012 12:42:06 +0000
(12:42 +0000)
committer
eap
<eap@opencascade.com>
Wed, 18 Jan 2012 12:42:06 +0000
(12:42 +0000)
fix GetMediumPos() to return EDGE instead of FACE for 2 VERTEXes
src/SMESH/SMESH_MesherHelper.cxx
patch
|
blob
|
history
diff --git
a/src/SMESH/SMESH_MesherHelper.cxx
b/src/SMESH/SMESH_MesherHelper.cxx
index 43943b31f33446c25f41b0c67effbf594d11ab41..47854cf6e64c877a8bccfdd608a60e3c6d03fdd8 100644
(file)
--- a/
src/SMESH/SMESH_MesherHelper.cxx
+++ b/
src/SMESH/SMESH_MesherHelper.cxx
@@
-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_
FAC
E );
- if ( shape.IsNull() ) shape = GetCommonAncestor( V1, V2, *myMesh, TopAbs_
EDG
E );
+ shape = GetCommonAncestor( V1, V2, *myMesh, TopAbs_
EDG
E );
+ if ( shape.IsNull() ) shape = GetCommonAncestor( V1, V2, *myMesh, TopAbs_
FAC
E );
}
else // VERTEX and EDGE
{