TopoShape/Part: Bug fixes; pass Hasher parms, OCCT 7.8 compatibility, ElementMaps correct item count

This commit is contained in:
bgbsww
2024-04-13 18:26:36 -04:00
parent 2eb4689996
commit a88e7baff5
13 changed files with 57 additions and 24 deletions

View File

@@ -122,7 +122,11 @@ static Py_hash_t _TopoShapeHash(PyObject* self)
"This reference is no longer valid!");
return 0;
}
#if OCC_VERSION_HEX >= 0x070800
return std::hash<TopoDS_Shape> {}(static_cast<TopoShapePy*>(self)->getTopoShapePtr()->getShape());
#else
return static_cast<TopoShapePy*>(self)->getTopoShapePtr()->getShape().HashCode(INT_MAX);
#endif
}
struct TopoShapePyInit