mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-27 06:10:34 +05:00
Merge branch 'property_propagate_geo_glue' into 'master'
propagate properties correctly in occgeom.Glue See merge request ngsolve/netgen!669
This commit is contained in:
commit
7656211b3e
@ -416,16 +416,7 @@ namespace netgen
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef OCC_HAVE_HISTORY
|
PropagateProperties(aBuilder, shape);
|
||||||
Handle(BRepTools_History) history = aBuilder.History ();
|
|
||||||
|
|
||||||
for (TopExp_Explorer e(shape, TopAbs_SOLID); e.More(); e.Next())
|
|
||||||
{
|
|
||||||
if (auto name = OCCGeometry::GetProperties(e.Current()).name)
|
|
||||||
for (auto mods : history->Modified(e.Current()))
|
|
||||||
OCCGeometry::GetProperties(mods).name = *name;
|
|
||||||
}
|
|
||||||
#endif // OCC_HAVE_HISTORY
|
|
||||||
|
|
||||||
// result of the operation
|
// result of the operation
|
||||||
shape = aBuilder.Shape();
|
shape = aBuilder.Shape();
|
||||||
|
Loading…
Reference in New Issue
Block a user