//
#include <GEOMAlgo_PassKeyShape.hxx>
+#include <Basics_OCCTVersion.hxx>
+
#include <TopTools_ListOfShape.hxx>
#include <TopTools_ListIteratorOfListOfShape.hxx>
Clear();
myNbIds=1;
myMap.Add(aS1);
+#if OCC_VERSION_LARGE < 0x07080000
aHC=aS1.HashCode(myUpper);
+#else
+ aHC = std::hash<TopoDS_Shape>{}(aS1);
+#endif
mySum=NormalizedId(aHC, myNbIds);
}
//=======================================================================
myNbIds=myMap.Extent();
for(i=1; i<=myNbIds; ++i) {
const TopoDS_Shape& aS=myMap(i);
+#if OCC_VERSION_LARGE < 0x07080000
aId=aS.HashCode(myUpper);
+#else
+ aId = std::hash<TopoDS_Shape>{}(aS);
+#endif
aIdN=NormalizedId(aId, myNbIds);
mySum+=aIdN;
}
}
return !bRet;
}
+#if OCC_VERSION_LARGE < 0x07080000
//=======================================================================
//function : HashCode
//purpose :
{
return ::HashCode(mySum, aUpper);
}
+#endif
//=======================================================================
//function : Dump
//purpose :