FaceBoundaryDraw Not Work as expected

In previous version of opencascade I can draw shapes with visible edges with just that;

    myContext->DefaultDrawer()->SetFaceBoundaryDraw(true);

But after I migrated to 7.4.0 it doesnt work. and I tired already those;

    myContext->DefaultDrawer()->SetFaceBoundaryDraw(true);
    myContext->DefaultDrawer()->FaceBoundaryAspect()->SetTypeOfLine(Aspect_TOL_SOLID);
    myContext->DefaultDrawer()->FaceBoundaryAspect()->SetColor(Quantity_NOC_BLACK);
    myContext->DefaultDrawer()->FaceBoundaryAspect()->SetWidth(2.2);
    myContext->EraseAll(true);
    myContext->DisplayAll(true);

and those;

    myContext->DefaultDrawer()->SetFaceBoundaryDraw(true);
    myContext->DefaultDrawer()->FaceBoundaryAspect()->Aspect()->SetType(Aspect_TOL_SOLID);
    myContext->DefaultDrawer()->FaceBoundaryAspect()->Aspect()->SetColor(Quantity_NOC_BLACK);
    myContext->DefaultDrawer()->FaceBoundaryAspect()->Aspect()->SetWidth(2.2);
    myContext->EraseAll(true);
    myContext->DisplayAll(true);

How can I display edges of shape?

EDIT:

I can display edges from;

shape = new AIS_Shape(subShape);
shape->Attributes()->SetFaceBoundaryDraw(true);

but I cannot reach SetColor() or SetWidth from;

shape->Attributes()->FaceBoundaryAspect()-> ...
Semih Ufuk Güler's picture
        shape = new AIS_Shape(subShape);
        shape->Attributes()->SetFaceBoundaryDraw(true);

This will make edges visible but I cannot reach SetColor()( or SetWidth()  from;

shape->Attributes()->FaceBoundaryAspect() ...