Mon, 06/07/2021 - 10:55
Forums:
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()-> ...
Mon, 06/07/2021 - 11:17
This will make edges visible but I cannot reach SetColor()( or SetWidth() from;