From: vsv Date: Thu, 8 Aug 2019 14:14:34 +0000 (+0300) Subject: Task 5.2.4 X-Git-Tag: V9_4_0a2~4^2~131^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Ftask_5_2_4;p=modules%2Fshaper.git Task 5.2.4 --- 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();