fox list of shape constructor in OCCGeometry propagating properties

This commit is contained in:
Christopher Lackner 2023-02-17 08:47:01 +01:00
parent 33a76ad6ba
commit 50356b7c5e

View File

@ -111,21 +111,8 @@ DLL_HEADER void ExportNgOCC(py::module &m)
for (auto & s : shapes)
builder.AddArgument(s);
builder.Perform();
cout << "glued together" << endl;
#ifdef OCC_HAVE_HISTORY
Handle(BRepTools_History) history = builder.History ();
for (auto & s : shapes)
for (TopExp_Explorer e(s, TopAbs_SOLID); e.More(); e.Next())
if (auto name = OCCGeometry::GetProperties(e.Current()).name)
{
TopTools_ListOfShape modlist = history->Modified(e.Current());
for (auto mods : modlist)
OCCGeometry::GetProperties(mods).name = *name;
}
#endif // OCC_HAVE_HISTORY
for(auto& s : shapes)
PropagateProperties(builder, s);
auto geo = make_shared<OCCGeometry> (builder.Shape());
ng_geometry = geo;
// geo->BuildFMap();