mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 05:20:34 +05:00
fox list of shape constructor in OCCGeometry propagating properties
This commit is contained in:
parent
33a76ad6ba
commit
50356b7c5e
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user