From: dbv Date: Wed, 5 Apr 2017 12:01:50 +0000 (+0300) Subject: Fixed isEqual for GeomAPI_Face X-Git-Tag: V_2.7.0~65 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=71d595967cf54b7cb546006f629aad289f038e8f;p=modules%2Fshaper.git Fixed isEqual for GeomAPI_Face --- diff --git a/src/GeomAPI/GeomAPI_Face.cpp b/src/GeomAPI/GeomAPI_Face.cpp index e6453787e..6dac2d057 100644 --- a/src/GeomAPI/GeomAPI_Face.cpp +++ b/src/GeomAPI/GeomAPI_Face.cpp @@ -68,7 +68,9 @@ bool GeomAPI_Face::isEqual(std::shared_ptr theFace) const return false; Handle(IntTools_Context) aContext = new IntTools_Context(); - Standard_Boolean aRes = BOPTools_AlgoTools::CheckSameGeom(aMyFace, aInFace, aContext); + // Double check needed bacause BOPTools_AlgoTools::CheckSameGeom not very smart. + Standard_Boolean aRes = BOPTools_AlgoTools::CheckSameGeom(aMyFace, aInFace, aContext) + && BOPTools_AlgoTools::CheckSameGeom(aInFace, aMyFace, aContext); return aRes == Standard_True; }