mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-13 06:30:34 +05:00
preserve bcnames for surface top-level objects
This commit is contained in:
parent
1bf0c50813
commit
033c180159
@ -367,8 +367,12 @@ DLL_HEADER void ExportCSG()
|
|||||||
{
|
{
|
||||||
solid->AddSurfaces (self);
|
solid->AddSurfaces (self);
|
||||||
solid->GiveUpOwner();
|
solid->GiveUpOwner();
|
||||||
int tlonr = self.SetTopLevelObject (solid->GetSolid(), &surface->GetSolid()->GetPrimitive()->GetSurface());
|
Surface & surf = surface->GetSolid()->GetPrimitive()->GetSurface();
|
||||||
self.GetTopLevelObject(tlonr) -> SetMaterial(solid->GetMaterial());
|
int tlonr = self.SetTopLevelObject (solid->GetSolid(), &surf);
|
||||||
|
// self.GetTopLevelObject(tlonr) -> SetMaterial(solid->GetMaterial());
|
||||||
|
self.GetTopLevelObject(tlonr) -> SetBCProp(surf.GetBCProperty());
|
||||||
|
self.GetTopLevelObject(tlonr) -> SetBCName(surf.GetBCName());
|
||||||
|
|
||||||
self.GetTopLevelObject(tlonr) -> SetRGB(solid->GetRed(),solid->GetGreen(),solid->GetBlue());
|
self.GetTopLevelObject(tlonr) -> SetRGB(solid->GetRed(),solid->GetGreen(),solid->GetBlue());
|
||||||
self.GetTopLevelObject(tlonr)->SetTransparent(solid->IsTransparent());
|
self.GetTopLevelObject(tlonr)->SetTransparent(solid->IsTransparent());
|
||||||
}),
|
}),
|
||||||
|
Loading…
Reference in New Issue
Block a user