change face color

Hi,
I try to change face color, but it is always yellow. my code as following:
TopoDS_Face aFace;
Handle(AIS_Shape) bFace = new AIS_Shape(aFace);
bFace->SetColor(Quantity_NOC_RED);
myAISContext->Display(bFace);
Thank you for your sharing!!

Robert W.'s picture

Hi, is it possible to change a color of hilighted/selected Face without changing the color of a whole shape? I know i can activate StandardMode (ctx->ActivateStandardMode(4)) but it only highlights the edges of a face and not the whole face. 

Claude M's picture

Hi ! Did you found how to change a color of hilighted/selected Face without changing the color of a whole shape??

Dulana Hansisi's picture

Hi,

Did you find any way to access attributes of an AIS shape?

Thank You!