From 71d595967cf54b7cb546006f629aad289f038e8f Mon Sep 17 00:00:00 2001 From: dbv Date: Wed, 5 Apr 2017 15:01:50 +0300 Subject: [PATCH] Fixed isEqual for GeomAPI_Face --- src/GeomAPI/GeomAPI_Face.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- 2.39.2