Hello,
I was able to change the color of selected object, by using
how ever, this seem to only work on the top level of the AIS shape and not the sub shape.
If I activate the 'face' selection, the selection highlights are different, and frankly it's a bit difficult to see.
I would like to shade the selected surface instead of a simple edge color.
Could any one point me in the right direction?
Best regards,
Jonathan.
I was able to change the color of selected object, by using
C++:
auto highlights = myAISContext->HighlightStyle();
highlights->SetColor(Quantity_NameOfColor::Quantity_NOC_MEDIUMPURPLE3);
highlights->SetShadingModel(Graphic3d_TypeOfShadingModel::V3d_PHONG);
highlights->SetMethod(Aspect_TypeOfHighlightMethod::Aspect_TOHM_COLOR);
myAISContext->SetHighlightStyle(highlights);
auto ownface = selection->HasOwnFaceBoundaryDraw();
if (!ownface) {
selection->SetFaceBoundaryDraw(true);
}
selection->SetColor(Quantity_NameOfColor::Quantity_NOC_DEEPPINK2);
selection->SetBasicFillAreaAspect(bfaa);
myAISContext->SetSelectionStyle(selection);
how ever, this seem to only work on the top level of the AIS shape and not the sub shape.
If I activate the 'face' selection, the selection highlights are different, and frankly it's a bit difficult to see.
I would like to shade the selected surface instead of a simple edge color.
Could any one point me in the right direction?
Best regards,
Jonathan.