Bug IPAL18040 - 4.x: color of the displayed edge group doesn't correspond to set one.

This commit is contained in:
ouv 2007-12-03 09:48:14 +00:00
parent c7ca9e31df
commit e9c972fa1f
2 changed files with 14 additions and 2 deletions

View File

@ -541,7 +541,14 @@ using namespace std;
_PTR(SObject) aGroupSObject = SMESH::FindSObject(aGroupObject);
if(SMESH_Actor *anActor = SMESH::FindActorByEntry(aGroupSObject->GetID().c_str()))
anActor->SetSufaceColor( aColor.R, aColor.G, aColor.B );
{
if( aGroupObject->GetType() == SMESH::NODE )
anActor->SetNodeColor( aColor.R, aColor.G, aColor.B );
else if( aGroupObject->GetType() == SMESH::EDGE )
anActor->SetEdgeColor( aColor.R, aColor.G, aColor.B );
else
anActor->SetSufaceColor( aColor.R, aColor.G, aColor.B );
}
}
SMESH::RepaintCurrentView();

View File

@ -587,7 +587,12 @@ namespace SMESH {
aColor.B = (float)b / 255.0;
aGroup->SetColor( aColor );
}
anActor->SetSufaceColor( aColor.R, aColor.G, aColor.B );
if( aGroup->GetType() == SMESH::NODE )
anActor->SetNodeColor( aColor.R, aColor.G, aColor.B );
else if( aGroup->GetType() == SMESH::EDGE )
anActor->SetEdgeColor( aColor.R, aColor.G, aColor.B );
else
anActor->SetSufaceColor( aColor.R, aColor.G, aColor.B );
}
}
}