I would like to change the attributes of Edge presentation in DynamicHilightAttributes. But it does not work.
Handle(AIS_InteractiveContext) ctx = ...; TopoDS_Shape shape = MakeBox(20, 20, 20); Handle(AIS_Shape) prs = new AIS_Shape(shape); prs->SetDynamicHilightAttributes(new Prs3d_Drawer()); prs->DynamicHilightAttributes()->SetLineAspect(new Prs3d_LineAspect(Quantity_NOC_RED, Aspect_TOL_SOLID, 10.0)); ctx->Display(prs, false); ctx->SetDisplayMode(prs, AIS_Shaded, false); ctx->Activate(prs, AIS_Shape::SelectionMode(TopAbs_EDGE));
At this point i can detect the edges of the presentation. But i would like to override the default graphical representation of a detected Edge. Increase the line width and change the color. I thought this was the role of DynamicHilightAttributes()->LineAspect();
I think there is something i am missing.
Thank you for your help, Aurelien