remove all std::maps<TopoDS_Shape, *> and std::set<TopoDS_Shape>

since hash conflicts may occur this is not safe.
This commit is contained in:
Christopher Lackner
2022-12-06 17:51:19 +01:00
parent 0a8bef493b
commit 0aa20603d9
6 changed files with 200 additions and 156 deletions

View File

@@ -118,11 +118,11 @@ DLL_HEADER void ExportNgOCC(py::module &m)
for (auto & s : shapes)
for (TopExp_Explorer e(s, TopAbs_SOLID); e.More(); e.Next())
if (auto name = OCCGeometry::global_shape_properties[e.Current()].name)
if (auto name = OCCGeometry::GetProperties(e.Current()).name)
{
TopTools_ListOfShape modlist = history->Modified(e.Current());
for (auto mods : modlist)
OCCGeometry::global_shape_properties[mods].name = *name;
OCCGeometry::GetProperties(mods).name = *name;
}
#endif // OCC_HAVE_HISTORY