mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
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:
commit
4d7829ae54
@ -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
|
||||
|
||||
PropagateProperties(builder, s);
|
||||
auto geo = make_shared<OCCGeometry> (builder.Shape());
|
||||
ng_geometry = geo;
|
||||
// geo->BuildFMap();
|
||||
|
Loading…
Reference in New Issue
Block a user