+ XGUI_Displayer* aDisplayer = myWorkshop->displayer();
+ Handle(AIS_Shape) aAis;
+ Handle(AIS_InteractiveObject) anAISIO;
+ double aDeviation = 0.001;
+
+ TopoDS_Shape aTShape = theRes->shape()->impl<TopoDS_Shape>();
+ if (!aTShape.IsSame(theIgnoreShape)) {
+ AISObjectPtr aAISPrs = aDisplayer->getAISObject(theRes);
+ if (aAISPrs.get()) {
+ anAISIO = aAISPrs->impl<Handle(AIS_InteractiveObject)>();
+ aDeviation = anAISIO->Attributes()->DeviationCoefficient();
+ }
+ else {
+ aDeviation = Config_PropManager::real("Visualization", "construction_deflection");
+ }
+ aAis = createPresentation(aTShape, aDeviation);
+ myHighlights.Append(aAis);
+ aContext->Display(aAis, false);
+ aContext->Deactivate(aAis);
+ }
+}
+