mirror of
https://github.com/NGSolve/netgen.git
synced 2026-06-19 00:56:46 +08:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user