From 38791b8d5e8025d72d935136f49a1f99d1fd59da Mon Sep 17 00:00:00 2001 From: vsv Date: Thu, 8 Aug 2019 17:14:34 +0300 Subject: [PATCH] Task 5.2.4 --- src/GeomAPI/GeomAPI_AISObject.cpp | 4 ++++ src/PartSet/PartSet_OperationPrs.cpp | 3 +++ 2 files changed, 7 insertions(+) diff --git a/src/GeomAPI/GeomAPI_AISObject.cpp b/src/GeomAPI/GeomAPI_AISObject.cpp index 7a86b1e8c..45f57fa5a 100644 --- a/src/GeomAPI/GeomAPI_AISObject.cpp +++ b/src/GeomAPI/GeomAPI_AISObject.cpp @@ -406,6 +406,10 @@ bool GeomAPI_AISObject::setDeflection(const double theDeflection) if (fabs(aCoefficient-theDeflection) > Precision::Confusion()) { isModified = true; anAISShape->SetOwnDeviationCoefficient(theDeflection); + Handle(Prs3d_Drawer) aDrawer = anAISShape->DynamicHilightAttributes(); + if (!aDrawer.IsNull()) { + aDrawer->SetDeviationCoefficient(theDeflection); + } // redisplay is necessary here to update presentation in all modes // Standard True flag. Displayer uses Standard False flag. If it will be changed in // displayer, redisplay here will not be necessary. But performance should be checked. diff --git a/src/PartSet/PartSet_OperationPrs.cpp b/src/PartSet/PartSet_OperationPrs.cpp index f9d91312c..f27f35f19 100644 --- a/src/PartSet/PartSet_OperationPrs.cpp +++ b/src/PartSet/PartSet_OperationPrs.cpp @@ -127,6 +127,9 @@ void PartSet_OperationPrs::Compute( // change deviation coefficient to provide more precise circle // as there is no result, the shape is processed to correct deviation. To be unified ModuleBase_Tools::setDefaultDeviationCoefficient(aShape, aDrawer); + Handle(Prs3d_Drawer) aHighlightDrawer = DynamicHilightAttributes(); + if (!aHighlightDrawer.IsNull()) + ModuleBase_Tools::setDefaultDeviationCoefficient(aShape, aHighlightDrawer); if (myUseAISWidth) { Handle(AIS_InteractiveObject) anIO = anIter.Value(); -- 2.39.2