Salome HOME
fix failure of non-regression test SMESH_TEST/Grids/smesh/mesh_Projection_2D/A1
authoreap <eap@opencascade.com>
Fri, 1 Mar 2013 14:32:53 +0000 (14:32 +0000)
committereap <eap@opencascade.com>
Fri, 1 Mar 2013 14:32:53 +0000 (14:32 +0000)
commit9f9b9d6ceb9972d38e65bcadadbbade14c2f04ea
tree02f967b7a5f0ea891bdca3af0b273dc9c019a8b2
parent6444728ac0e3ddcdd1ddc3a1d43cafebb2b9ab40
fix failure of non-regression test SMESH_TEST/Grids/smesh/mesh_Projection_2D/A1

 Avoid returning EDGE position for 2 nodes on the same EDGE, while the
 medium node should be on FACE. The case is a triangle whose 3 nodes are on
 the same EDGE. The worst is that in this case the medium node which
 is logically on FACE falls to a straight EDGE, as the triangle is of
 zero area (thanks to MEFISTO)

 std::pair<int, TopAbs_ShapeEnum> GetMediumPos(const SMDS_MeshNode* n1,
                                               const SMDS_MeshNode* n2,
+                                              const bool           useCurSubShape=false);
src/SMESH/SMESH_MesherHelper.cxx
src/SMESH/SMESH_MesherHelper.hxx