Merge branch 'occ_list_of_shape_constructor' into 'master'

fox list of shape constructor in OCCGeometry propagating properties

See merge request ngsolve/netgen!557
This commit is contained in:
Schöberl, Joachim 2023-02-17 10:24:58 +01:00
commit 4d7829ae54

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();