Salome HOME
Fixed isEqual for GeomAPI_Face
authordbv <dbv@opencascade.com>
Wed, 5 Apr 2017 12:01:50 +0000 (15:01 +0300)
committerdbv <dbv@opencascade.com>
Wed, 5 Apr 2017 12:02:03 +0000 (15:02 +0300)
src/GeomAPI/GeomAPI_Face.cpp

index e6453787e9ba54ee047f995dd6d7e06f86125b87..6dac2d05762cbc2fc1229ff62360bd9ecc5e844b 100644 (file)
@@ -68,7 +68,9 @@ bool GeomAPI_Face::isEqual(std::shared_ptr<GeomAPI_Shape> 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;
 }