mirror of
https://github.com/NGSolve/netgen.git
synced 2025-03-22 22:47:56 +05:00
fix colors from step read if they are set on solid for subshapes
This commit is contained in:
parent
951e20a7e4
commit
97f869207e
@ -2288,10 +2288,22 @@ namespace netgen
|
||||
XCAFPrs::CollectStyleSettings(label, loc, set);
|
||||
XCAFPrs_Style aStyle;
|
||||
set.FindFromKey(e.Current(), aStyle);
|
||||
|
||||
auto & prop = OCCGeometry::GetProperties(e.Current());
|
||||
if(aStyle.IsSetColorSurf())
|
||||
prop.col = step_utils::ReadColor(aStyle.GetColorSurfRGBA());
|
||||
{
|
||||
for(TopExp_Explorer e2(e.Current(), TopAbs_FACE); e2.More(); e2.Next())
|
||||
{
|
||||
auto & prop = OCCGeometry::GetProperties(e2.Current());
|
||||
prop.col = step_utils::ReadColor(aStyle.GetColorSurfRGBA());
|
||||
}
|
||||
}
|
||||
if(aStyle.IsSetColorCurv())
|
||||
{
|
||||
for(TopExp_Explorer e2(e.Current(), TopAbs_EDGE); e2.More(); e2.Next())
|
||||
{
|
||||
auto & prop = OCCGeometry::GetProperties(e2.Current());
|
||||
prop.col = step_utils::ReadColor(aStyle.GetColorSurfRGBA());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// load names
|
||||
|
Loading…
x
Reference in New Issue
Block a user